1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_qcms_qcms_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/qcms/src/chain.c \ 27 third_party/qcms/src/iccread.c \ 28 third_party/qcms/src/matrix.c \ 29 third_party/qcms/src/transform.c \ 30 third_party/qcms/src/transform_util.c 31 32 33 # Flags passed to both C and C++ files. 34 MY_CFLAGS_Debug := \ 35 --param=ssp-buffer-size=4 \ 36 -fno-exceptions \ 37 -fno-strict-aliasing \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -Wno-unused-local-typedefs \ 44 -Wno-format \ 45 -ffunction-sections \ 46 -funwind-tables \ 47 -g \ 48 -fno-short-enums \ 49 -finline-limit=64 \ 50 -Wa,--noexecstack \ 51 -U_FORTIFY_SOURCE \ 52 -Wno-extra \ 53 -Wno-ignored-qualifiers \ 54 -Wno-type-limits \ 55 -Wno-unused-but-set-variable \ 56 -Wno-address \ 57 -Wno-format-security \ 58 -Wno-return-type \ 59 -Wno-sequence-point \ 60 -Os \ 61 -g \ 62 -fdata-sections \ 63 -ffunction-sections \ 64 -funwind-tables 65 66 MY_DEFS_Debug := \ 67 '-DV8_DEPRECATION_WARNINGS' \ 68 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISABLE_NACL' \ 72 '-DCHROMIUM_BUILD' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DENABLE_WEBRTC=1' \ 75 '-DUSE_PROPRIETARY_CODECS' \ 76 '-DENABLE_BROWSER_CDMS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DENABLE_EGLIMAGE=1' \ 81 '-DCLD_VERSION=1' \ 82 '-DENABLE_PRINTING=1' \ 83 '-DENABLE_MANAGED_USERS=1' \ 84 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 85 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 86 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 87 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 88 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 89 '-DVIDEO_HOLE=1' \ 90 '-DUSE_OPENSSL=1' \ 91 '-DUSE_OPENSSL_CERTS=1' \ 92 '-DANDROID' \ 93 '-D__GNU_SOURCE=1' \ 94 '-DUSE_STLPORT=1' \ 95 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 96 '-DCHROME_BUILD_ID=""' \ 97 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 98 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 99 '-D_DEBUG' 100 101 102 # Include paths placed before CFLAGS/CPPFLAGS 103 LOCAL_C_INCLUDES_Debug := \ 104 $(gyp_shared_intermediate_dir) \ 105 $(PWD)/frameworks/wilhelm/include \ 106 $(PWD)/bionic \ 107 $(PWD)/external/stlport/stlport 108 109 110 # Flags passed to only C++ (and not C) files. 111 LOCAL_CPPFLAGS_Debug := \ 112 -fno-rtti \ 113 -fno-threadsafe-statics \ 114 -fvisibility-inlines-hidden \ 115 -Wno-deprecated \ 116 -Wno-non-virtual-dtor \ 117 -Wno-sign-promo \ 118 -Wno-non-virtual-dtor 119 120 121 LOCAL_FDO_SUPPORT_Debug := false 122 123 # Flags passed to both C and C++ files. 124 MY_CFLAGS_Release := \ 125 --param=ssp-buffer-size=4 \ 126 -fno-exceptions \ 127 -fno-strict-aliasing \ 128 -Wno-unused-parameter \ 129 -Wno-missing-field-initializers \ 130 -fvisibility=hidden \ 131 -pipe \ 132 -fPIC \ 133 -Wno-unused-local-typedefs \ 134 -Wno-format \ 135 -ffunction-sections \ 136 -funwind-tables \ 137 -g \ 138 -fno-short-enums \ 139 -finline-limit=64 \ 140 -Wa,--noexecstack \ 141 -U_FORTIFY_SOURCE \ 142 -Wno-extra \ 143 -Wno-ignored-qualifiers \ 144 -Wno-type-limits \ 145 -Wno-unused-but-set-variable \ 146 -Wno-address \ 147 -Wno-format-security \ 148 -Wno-return-type \ 149 -Wno-sequence-point \ 150 -Os \ 151 -fno-ident \ 152 -fdata-sections \ 153 -ffunction-sections \ 154 -funwind-tables 155 156 MY_DEFS_Release := \ 157 '-DV8_DEPRECATION_WARNINGS' \ 158 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 159 '-D_FILE_OFFSET_BITS=64' \ 160 '-DNO_TCMALLOC' \ 161 '-DDISABLE_NACL' \ 162 '-DCHROMIUM_BUILD' \ 163 '-DUSE_LIBJPEG_TURBO=1' \ 164 '-DENABLE_WEBRTC=1' \ 165 '-DUSE_PROPRIETARY_CODECS' \ 166 '-DENABLE_BROWSER_CDMS' \ 167 '-DENABLE_CONFIGURATION_POLICY' \ 168 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 169 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 170 '-DENABLE_EGLIMAGE=1' \ 171 '-DCLD_VERSION=1' \ 172 '-DENABLE_PRINTING=1' \ 173 '-DENABLE_MANAGED_USERS=1' \ 174 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 175 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 176 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 177 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 178 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 179 '-DVIDEO_HOLE=1' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DUSE_OPENSSL_CERTS=1' \ 182 '-DANDROID' \ 183 '-D__GNU_SOURCE=1' \ 184 '-DUSE_STLPORT=1' \ 185 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 186 '-DCHROME_BUILD_ID=""' \ 187 '-DNDEBUG' \ 188 '-DNVALGRIND' \ 189 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 190 191 192 # Include paths placed before CFLAGS/CPPFLAGS 193 LOCAL_C_INCLUDES_Release := \ 194 $(gyp_shared_intermediate_dir) \ 195 $(PWD)/frameworks/wilhelm/include \ 196 $(PWD)/bionic \ 197 $(PWD)/external/stlport/stlport 198 199 200 # Flags passed to only C++ (and not C) files. 201 LOCAL_CPPFLAGS_Release := \ 202 -fno-rtti \ 203 -fno-threadsafe-statics \ 204 -fvisibility-inlines-hidden \ 205 -Wno-deprecated \ 206 -Wno-non-virtual-dtor \ 207 -Wno-sign-promo \ 208 -Wno-non-virtual-dtor 209 210 211 LOCAL_FDO_SUPPORT_Release := false 212 213 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 214 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 215 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 216 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 217 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 218 ### Rules for final target. 219 220 LOCAL_LDFLAGS_Debug := \ 221 -Wl,-z,now \ 222 -Wl,-z,relro \ 223 -Wl,--fatal-warnings \ 224 -Wl,-z,noexecstack \ 225 -fPIC \ 226 -nostdlib \ 227 -Wl,--no-undefined \ 228 -Wl,--exclude-libs=ALL \ 229 -Wl,--warn-shared-textrel \ 230 -Wl,-O1 \ 231 -Wl,--as-needed 232 233 234 LOCAL_LDFLAGS_Release := \ 235 -Wl,-z,now \ 236 -Wl,-z,relro \ 237 -Wl,--fatal-warnings \ 238 -Wl,-z,noexecstack \ 239 -fPIC \ 240 -nostdlib \ 241 -Wl,--no-undefined \ 242 -Wl,--exclude-libs=ALL \ 243 -Wl,-O1 \ 244 -Wl,--as-needed \ 245 -Wl,--gc-sections \ 246 -Wl,--warn-shared-textrel 247 248 249 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 250 251 LOCAL_STATIC_LIBRARIES := 252 253 # Enable grouping to fix circular references 254 LOCAL_GROUP_STATIC_LIBRARIES := true 255 256 LOCAL_SHARED_LIBRARIES := \ 257 libstlport \ 258 libdl 259 260 # Add target alias to "gyp_all_modules" target. 261 .PHONY: gyp_all_modules 262 gyp_all_modules: third_party_qcms_qcms_gyp 263 264 # Alias gyp target name. 265 .PHONY: qcms 266 qcms: third_party_qcms_qcms_gyp 267 268 include $(BUILD_STATIC_LIBRARY) 269