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 -fstack-protector \ 36 --param=ssp-buffer-size=4 \ 37 -fno-exceptions \ 38 -fno-strict-aliasing \ 39 -Wno-unused-parameter \ 40 -Wno-missing-field-initializers \ 41 -fvisibility=hidden \ 42 -pipe \ 43 -fPIC \ 44 -Wno-unused-local-typedefs \ 45 -Wno-format \ 46 -fno-tree-sra \ 47 -fno-partial-inlining \ 48 -fno-early-inlining \ 49 -fno-tree-copy-prop \ 50 -fno-tree-loop-optimize \ 51 -fno-move-loop-invariants \ 52 -fno-caller-saves \ 53 -Wno-psabi \ 54 -ffunction-sections \ 55 -funwind-tables \ 56 -g \ 57 -fstack-protector \ 58 -fno-short-enums \ 59 -finline-limit=64 \ 60 -Wa,--noexecstack \ 61 -U_FORTIFY_SOURCE \ 62 -Wno-extra \ 63 -Wno-ignored-qualifiers \ 64 -Wno-type-limits \ 65 -Wno-unused-but-set-variable \ 66 -Wno-address \ 67 -Wno-format-security \ 68 -Wno-return-type \ 69 -Wno-sequence-point \ 70 -Os \ 71 -g \ 72 -fdata-sections \ 73 -ffunction-sections \ 74 -fomit-frame-pointer \ 75 -funwind-tables 76 77 MY_DEFS_Debug := \ 78 '-DV8_DEPRECATION_WARNINGS' \ 79 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISABLE_NACL' \ 83 '-DCHROMIUM_BUILD' \ 84 '-DUSE_LIBJPEG_TURBO=1' \ 85 '-DENABLE_WEBRTC=1' \ 86 '-DUSE_PROPRIETARY_CODECS' \ 87 '-DENABLE_BROWSER_CDMS' \ 88 '-DENABLE_CONFIGURATION_POLICY' \ 89 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 90 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 91 '-DENABLE_EGLIMAGE=1' \ 92 '-DCLD_VERSION=1' \ 93 '-DENABLE_PRINTING=1' \ 94 '-DENABLE_MANAGED_USERS=1' \ 95 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 96 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 97 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 98 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 99 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 100 '-DVIDEO_HOLE=1' \ 101 '-DUSE_OPENSSL=1' \ 102 '-DUSE_OPENSSL_CERTS=1' \ 103 '-DANDROID' \ 104 '-D__GNU_SOURCE=1' \ 105 '-DUSE_STLPORT=1' \ 106 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 107 '-DCHROME_BUILD_ID=""' \ 108 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 109 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 110 '-D_DEBUG' 111 112 113 # Include paths placed before CFLAGS/CPPFLAGS 114 LOCAL_C_INCLUDES_Debug := \ 115 $(gyp_shared_intermediate_dir) \ 116 $(PWD)/frameworks/wilhelm/include \ 117 $(PWD)/bionic \ 118 $(PWD)/external/stlport/stlport 119 120 121 # Flags passed to only C++ (and not C) files. 122 LOCAL_CPPFLAGS_Debug := \ 123 -fno-rtti \ 124 -fno-threadsafe-statics \ 125 -fvisibility-inlines-hidden \ 126 -Wno-deprecated \ 127 -Wno-abi \ 128 -Wno-non-virtual-dtor \ 129 -Wno-sign-promo \ 130 -Wno-non-virtual-dtor 131 132 133 LOCAL_FDO_SUPPORT_Debug := false 134 135 # Flags passed to both C and C++ files. 136 MY_CFLAGS_Release := \ 137 -fstack-protector \ 138 --param=ssp-buffer-size=4 \ 139 -fno-exceptions \ 140 -fno-strict-aliasing \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -Wno-unused-local-typedefs \ 147 -Wno-format \ 148 -fno-tree-sra \ 149 -fno-partial-inlining \ 150 -fno-early-inlining \ 151 -fno-tree-copy-prop \ 152 -fno-tree-loop-optimize \ 153 -fno-move-loop-invariants \ 154 -fno-caller-saves \ 155 -Wno-psabi \ 156 -ffunction-sections \ 157 -funwind-tables \ 158 -g \ 159 -fstack-protector \ 160 -fno-short-enums \ 161 -finline-limit=64 \ 162 -Wa,--noexecstack \ 163 -U_FORTIFY_SOURCE \ 164 -Wno-extra \ 165 -Wno-ignored-qualifiers \ 166 -Wno-type-limits \ 167 -Wno-unused-but-set-variable \ 168 -Wno-address \ 169 -Wno-format-security \ 170 -Wno-return-type \ 171 -Wno-sequence-point \ 172 -Os \ 173 -fno-ident \ 174 -fdata-sections \ 175 -ffunction-sections \ 176 -fomit-frame-pointer \ 177 -funwind-tables 178 179 MY_DEFS_Release := \ 180 '-DV8_DEPRECATION_WARNINGS' \ 181 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 182 '-D_FILE_OFFSET_BITS=64' \ 183 '-DNO_TCMALLOC' \ 184 '-DDISABLE_NACL' \ 185 '-DCHROMIUM_BUILD' \ 186 '-DUSE_LIBJPEG_TURBO=1' \ 187 '-DENABLE_WEBRTC=1' \ 188 '-DUSE_PROPRIETARY_CODECS' \ 189 '-DENABLE_BROWSER_CDMS' \ 190 '-DENABLE_CONFIGURATION_POLICY' \ 191 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 192 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 193 '-DENABLE_EGLIMAGE=1' \ 194 '-DCLD_VERSION=1' \ 195 '-DENABLE_PRINTING=1' \ 196 '-DENABLE_MANAGED_USERS=1' \ 197 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 198 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 199 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 200 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 201 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 202 '-DVIDEO_HOLE=1' \ 203 '-DUSE_OPENSSL=1' \ 204 '-DUSE_OPENSSL_CERTS=1' \ 205 '-DANDROID' \ 206 '-D__GNU_SOURCE=1' \ 207 '-DUSE_STLPORT=1' \ 208 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 209 '-DCHROME_BUILD_ID=""' \ 210 '-DNDEBUG' \ 211 '-DNVALGRIND' \ 212 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 213 214 215 # Include paths placed before CFLAGS/CPPFLAGS 216 LOCAL_C_INCLUDES_Release := \ 217 $(gyp_shared_intermediate_dir) \ 218 $(PWD)/frameworks/wilhelm/include \ 219 $(PWD)/bionic \ 220 $(PWD)/external/stlport/stlport 221 222 223 # Flags passed to only C++ (and not C) files. 224 LOCAL_CPPFLAGS_Release := \ 225 -fno-rtti \ 226 -fno-threadsafe-statics \ 227 -fvisibility-inlines-hidden \ 228 -Wno-deprecated \ 229 -Wno-abi \ 230 -Wno-non-virtual-dtor \ 231 -Wno-sign-promo \ 232 -Wno-non-virtual-dtor 233 234 235 LOCAL_FDO_SUPPORT_Release := false 236 237 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 238 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 239 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 240 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 241 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 242 ### Rules for final target. 243 244 LOCAL_LDFLAGS_Debug := \ 245 -Wl,-z,now \ 246 -Wl,-z,relro \ 247 -Wl,--fatal-warnings \ 248 -Wl,-z,noexecstack \ 249 -fPIC \ 250 -Wl,-z,relro \ 251 -Wl,-z,now \ 252 -fuse-ld=gold \ 253 -nostdlib \ 254 -Wl,--no-undefined \ 255 -Wl,--exclude-libs=ALL \ 256 -Wl,--icf=safe \ 257 -Wl,--warn-shared-textrel \ 258 -Wl,-O1 \ 259 -Wl,--as-needed 260 261 262 LOCAL_LDFLAGS_Release := \ 263 -Wl,-z,now \ 264 -Wl,-z,relro \ 265 -Wl,--fatal-warnings \ 266 -Wl,-z,noexecstack \ 267 -fPIC \ 268 -Wl,-z,relro \ 269 -Wl,-z,now \ 270 -fuse-ld=gold \ 271 -nostdlib \ 272 -Wl,--no-undefined \ 273 -Wl,--exclude-libs=ALL \ 274 -Wl,--icf=safe \ 275 -Wl,-O1 \ 276 -Wl,--as-needed \ 277 -Wl,--gc-sections \ 278 -Wl,--warn-shared-textrel 279 280 281 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 282 283 LOCAL_STATIC_LIBRARIES := 284 285 # Enable grouping to fix circular references 286 LOCAL_GROUP_STATIC_LIBRARIES := true 287 288 LOCAL_SHARED_LIBRARIES := \ 289 libstlport \ 290 libdl 291 292 # Add target alias to "gyp_all_modules" target. 293 .PHONY: gyp_all_modules 294 gyp_all_modules: third_party_qcms_qcms_gyp 295 296 # Alias gyp target name. 297 .PHONY: qcms 298 qcms: third_party_qcms_qcms_gyp 299 300 include $(BUILD_STATIC_LIBRARY) 301