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