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