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