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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_SRC_FILES := \ 25 third_party/libpng/png.c \ 26 third_party/libpng/pngerror.c \ 27 third_party/libpng/pnggccrd.c \ 28 third_party/libpng/pngget.c \ 29 third_party/libpng/pngmem.c \ 30 third_party/libpng/pngpread.c \ 31 third_party/libpng/pngread.c \ 32 third_party/libpng/pngrio.c \ 33 third_party/libpng/pngrtran.c \ 34 third_party/libpng/pngrutil.c \ 35 third_party/libpng/pngset.c \ 36 third_party/libpng/pngtrans.c \ 37 third_party/libpng/pngvcrd.c \ 38 third_party/libpng/pngwio.c \ 39 third_party/libpng/pngwrite.c \ 40 third_party/libpng/pngwtran.c \ 41 third_party/libpng/pngwutil.c 42 43 44 # Flags passed to both C and C++ files. 45 MY_CFLAGS_Debug := \ 46 -fstack-protector \ 47 --param=ssp-buffer-size=4 \ 48 \ 49 -fno-strict-aliasing \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-unused-local-typedefs \ 56 -Wno-format \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fstack-protector \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -Wno-unused-but-set-variable \ 69 -Wno-address \ 70 -Wno-format-security \ 71 -Wno-return-type \ 72 -Wno-sequence-point \ 73 -Os \ 74 -g \ 75 -gdwarf-4 \ 76 -fdata-sections \ 77 -ffunction-sections \ 78 -fomit-frame-pointer \ 79 -funwind-tables 80 81 MY_DEFS_Debug := \ 82 '-DV8_DEPRECATION_WARNINGS' \ 83 '-D_FILE_OFFSET_BITS=64' \ 84 '-DNO_TCMALLOC' \ 85 '-DDISABLE_NACL' \ 86 '-DCHROMIUM_BUILD' \ 87 '-DUSE_LIBJPEG_TURBO=1' \ 88 '-DENABLE_WEBRTC=1' \ 89 '-DUSE_PROPRIETARY_CODECS' \ 90 '-DENABLE_BROWSER_CDMS' \ 91 '-DENABLE_CONFIGURATION_POLICY' \ 92 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 93 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 94 '-DENABLE_EGLIMAGE=1' \ 95 '-DCLD_VERSION=1' \ 96 '-DENABLE_PRINTING=1' \ 97 '-DENABLE_MANAGED_USERS=1' \ 98 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 99 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 100 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 101 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 102 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 103 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 104 '-DVIDEO_HOLE=1' \ 105 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 106 '-DCHROME_PNG_WRITE_SUPPORT' \ 107 '-DPNG_USER_CONFIG' \ 108 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 109 '-DUSE_OPENSSL=1' \ 110 '-DUSE_OPENSSL_CERTS=1' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 117 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 118 '-D_DEBUG' 119 120 121 # Include paths placed before CFLAGS/CPPFLAGS 122 LOCAL_C_INCLUDES_Debug := \ 123 $(gyp_shared_intermediate_dir) \ 124 $(LOCAL_PATH)/third_party/zlib \ 125 $(PWD)/frameworks/wilhelm/include \ 126 $(PWD)/bionic \ 127 $(PWD)/external/stlport/stlport 128 129 130 # Flags passed to only C++ (and not C) files. 131 LOCAL_CPPFLAGS_Debug := \ 132 -fno-exceptions \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wno-deprecated \ 137 -Wno-uninitialized \ 138 -std=gnu++11 \ 139 -Wno-narrowing \ 140 -Wno-literal-suffix \ 141 -Wno-non-virtual-dtor \ 142 -Wno-sign-promo \ 143 -Wno-non-virtual-dtor 144 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-strict-aliasing \ 152 -Wno-unused-parameter \ 153 -Wno-missing-field-initializers \ 154 -fvisibility=hidden \ 155 -pipe \ 156 -fPIC \ 157 -Wno-unused-local-typedefs \ 158 -Wno-format \ 159 -ffunction-sections \ 160 -funwind-tables \ 161 -g \ 162 -fstack-protector \ 163 -fno-short-enums \ 164 -finline-limit=64 \ 165 -Wa,--noexecstack \ 166 -U_FORTIFY_SOURCE \ 167 -Wno-extra \ 168 -Wno-ignored-qualifiers \ 169 -Wno-type-limits \ 170 -Wno-unused-but-set-variable \ 171 -Wno-address \ 172 -Wno-format-security \ 173 -Wno-return-type \ 174 -Wno-sequence-point \ 175 -Os \ 176 -fno-ident \ 177 -fdata-sections \ 178 -ffunction-sections \ 179 -fomit-frame-pointer \ 180 -funwind-tables 181 182 MY_DEFS_Release := \ 183 '-DV8_DEPRECATION_WARNINGS' \ 184 '-D_FILE_OFFSET_BITS=64' \ 185 '-DNO_TCMALLOC' \ 186 '-DDISABLE_NACL' \ 187 '-DCHROMIUM_BUILD' \ 188 '-DUSE_LIBJPEG_TURBO=1' \ 189 '-DENABLE_WEBRTC=1' \ 190 '-DUSE_PROPRIETARY_CODECS' \ 191 '-DENABLE_BROWSER_CDMS' \ 192 '-DENABLE_CONFIGURATION_POLICY' \ 193 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 194 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 195 '-DENABLE_EGLIMAGE=1' \ 196 '-DCLD_VERSION=1' \ 197 '-DENABLE_PRINTING=1' \ 198 '-DENABLE_MANAGED_USERS=1' \ 199 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 200 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 201 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 202 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 203 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 204 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 205 '-DVIDEO_HOLE=1' \ 206 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 207 '-DCHROME_PNG_WRITE_SUPPORT' \ 208 '-DPNG_USER_CONFIG' \ 209 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 210 '-DUSE_OPENSSL=1' \ 211 '-DUSE_OPENSSL_CERTS=1' \ 212 '-DANDROID' \ 213 '-D__GNU_SOURCE=1' \ 214 '-DUSE_STLPORT=1' \ 215 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 216 '-DCHROME_BUILD_ID=""' \ 217 '-DNDEBUG' \ 218 '-DNVALGRIND' \ 219 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 220 221 222 # Include paths placed before CFLAGS/CPPFLAGS 223 LOCAL_C_INCLUDES_Release := \ 224 $(gyp_shared_intermediate_dir) \ 225 $(LOCAL_PATH)/third_party/zlib \ 226 $(PWD)/frameworks/wilhelm/include \ 227 $(PWD)/bionic \ 228 $(PWD)/external/stlport/stlport 229 230 231 # Flags passed to only C++ (and not C) files. 232 LOCAL_CPPFLAGS_Release := \ 233 -fno-exceptions \ 234 -fno-rtti \ 235 -fno-threadsafe-statics \ 236 -fvisibility-inlines-hidden \ 237 -Wno-deprecated \ 238 -Wno-uninitialized \ 239 -std=gnu++11 \ 240 -Wno-narrowing \ 241 -Wno-literal-suffix \ 242 -Wno-non-virtual-dtor \ 243 -Wno-sign-promo \ 244 -Wno-non-virtual-dtor 245 246 247 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 248 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 249 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 250 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 251 ### Rules for final target. 252 253 LOCAL_SHARED_LIBRARIES := \ 254 libstlport \ 255 libdl 256 257 # Add target alias to "gyp_all_modules" target. 258 .PHONY: gyp_all_modules 259 gyp_all_modules: third_party_libpng_libpng_gyp 260 261 # Alias gyp target name. 262 .PHONY: libpng 263 libpng: third_party_libpng_libpng_gyp 264 265 include $(BUILD_STATIC_LIBRARY) 266