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