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_dsp_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/libwebp/dsp/alpha_processing.c \ 27 third_party/libwebp/dsp/cpu.c \ 28 third_party/libwebp/dsp/dec.c \ 29 third_party/libwebp/dsp/dec_clip_tables.c \ 30 third_party/libwebp/dsp/dec_mips32.c \ 31 third_party/libwebp/dsp/dec_sse2.c \ 32 third_party/libwebp/dsp/enc.c \ 33 third_party/libwebp/dsp/enc_avx2.c \ 34 third_party/libwebp/dsp/enc_mips32.c \ 35 third_party/libwebp/dsp/enc_sse2.c \ 36 third_party/libwebp/dsp/lossless.c \ 37 third_party/libwebp/dsp/lossless_mips32.c \ 38 third_party/libwebp/dsp/lossless_sse2.c \ 39 third_party/libwebp/dsp/upsampling.c \ 40 third_party/libwebp/dsp/upsampling_sse2.c \ 41 third_party/libwebp/dsp/yuv.c \ 42 third_party/libwebp/dsp/yuv_mips32.c \ 43 third_party/libwebp/dsp/yuv_sse2.c 44 45 46 # Flags passed to both C and C++ files. 47 MY_CFLAGS_Debug := \ 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 -msse2 \ 59 -mfpmath=sse \ 60 -mmmx \ 61 -m32 \ 62 -ffunction-sections \ 63 -funwind-tables \ 64 -g \ 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 -fno-stack-protector \ 74 -Wno-address \ 75 -Wno-format-security \ 76 -Wno-return-type \ 77 -Wno-sequence-point \ 78 -Os \ 79 -g \ 80 -fdata-sections \ 81 -ffunction-sections \ 82 -fomit-frame-pointer \ 83 -funwind-tables 84 85 MY_DEFS_Debug := \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 88 '-D_FILE_OFFSET_BITS=64' \ 89 '-DNO_TCMALLOC' \ 90 '-DDISABLE_NACL' \ 91 '-DCHROMIUM_BUILD' \ 92 '-DUSE_LIBJPEG_TURBO=1' \ 93 '-DENABLE_WEBRTC=1' \ 94 '-DUSE_PROPRIETARY_CODECS' \ 95 '-DENABLE_BROWSER_CDMS' \ 96 '-DENABLE_CONFIGURATION_POLICY' \ 97 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 98 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 99 '-DENABLE_EGLIMAGE=1' \ 100 '-DCLD_VERSION=1' \ 101 '-DENABLE_PRINTING=1' \ 102 '-DENABLE_MANAGED_USERS=1' \ 103 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 104 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 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/libwebp \ 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-rtti \ 133 -fno-threadsafe-statics \ 134 -fvisibility-inlines-hidden \ 135 -Wno-deprecated \ 136 -Wno-non-virtual-dtor \ 137 -Wno-sign-promo \ 138 -Wno-non-virtual-dtor 139 140 141 LOCAL_FDO_SUPPORT_Debug := false 142 143 # Flags passed to both C and C++ files. 144 MY_CFLAGS_Release := \ 145 --param=ssp-buffer-size=4 \ 146 -fno-exceptions \ 147 -fno-strict-aliasing \ 148 -Wno-unused-parameter \ 149 -Wno-missing-field-initializers \ 150 -fvisibility=hidden \ 151 -pipe \ 152 -fPIC \ 153 -Wno-unused-local-typedefs \ 154 -Wno-format \ 155 -msse2 \ 156 -mfpmath=sse \ 157 -mmmx \ 158 -m32 \ 159 -ffunction-sections \ 160 -funwind-tables \ 161 -g \ 162 -fno-short-enums \ 163 -finline-limit=64 \ 164 -Wa,--noexecstack \ 165 -U_FORTIFY_SOURCE \ 166 -Wno-extra \ 167 -Wno-ignored-qualifiers \ 168 -Wno-type-limits \ 169 -Wno-unused-but-set-variable \ 170 -fno-stack-protector \ 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 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 185 '-D_FILE_OFFSET_BITS=64' \ 186 '-DNO_TCMALLOC' \ 187 '-DDISABLE_NACL' \ 188 '-DCHROMIUM_BUILD' \ 189 '-DUSE_LIBJPEG_TURBO=1' \ 190 '-DENABLE_WEBRTC=1' \ 191 '-DUSE_PROPRIETARY_CODECS' \ 192 '-DENABLE_BROWSER_CDMS' \ 193 '-DENABLE_CONFIGURATION_POLICY' \ 194 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 195 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 196 '-DENABLE_EGLIMAGE=1' \ 197 '-DCLD_VERSION=1' \ 198 '-DENABLE_PRINTING=1' \ 199 '-DENABLE_MANAGED_USERS=1' \ 200 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 201 '-DDATA_REDUCTION_DEV_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 '-DUSE_OPENSSL=1' \ 207 '-DUSE_OPENSSL_CERTS=1' \ 208 '-DANDROID' \ 209 '-D__GNU_SOURCE=1' \ 210 '-DUSE_STLPORT=1' \ 211 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 212 '-DCHROME_BUILD_ID=""' \ 213 '-DNDEBUG' \ 214 '-DNVALGRIND' \ 215 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 216 217 218 # Include paths placed before CFLAGS/CPPFLAGS 219 LOCAL_C_INCLUDES_Release := \ 220 $(gyp_shared_intermediate_dir) \ 221 $(LOCAL_PATH)/third_party/libwebp \ 222 $(PWD)/frameworks/wilhelm/include \ 223 $(PWD)/bionic \ 224 $(PWD)/external/stlport/stlport 225 226 227 # Flags passed to only C++ (and not C) files. 228 LOCAL_CPPFLAGS_Release := \ 229 -fno-rtti \ 230 -fno-threadsafe-statics \ 231 -fvisibility-inlines-hidden \ 232 -Wno-deprecated \ 233 -Wno-non-virtual-dtor \ 234 -Wno-sign-promo \ 235 -Wno-non-virtual-dtor 236 237 238 LOCAL_FDO_SUPPORT_Release := false 239 240 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 241 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 242 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 243 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 244 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 245 ### Rules for final target. 246 247 LOCAL_LDFLAGS_Debug := \ 248 -Wl,-z,now \ 249 -Wl,-z,relro \ 250 -Wl,--fatal-warnings \ 251 -Wl,-z,noexecstack \ 252 -fPIC \ 253 -m32 \ 254 -fuse-ld=gold \ 255 -nostdlib \ 256 -Wl,--no-undefined \ 257 -Wl,--exclude-libs=ALL \ 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 -m32 \ 270 -fuse-ld=gold \ 271 -nostdlib \ 272 -Wl,--no-undefined \ 273 -Wl,--exclude-libs=ALL \ 274 -Wl,-O1 \ 275 -Wl,--as-needed \ 276 -Wl,--gc-sections \ 277 -Wl,--warn-shared-textrel 278 279 280 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 281 282 LOCAL_STATIC_LIBRARIES := \ 283 cpufeatures 284 285 # Enable grouping to fix circular references 286 LOCAL_GROUP_STATIC_LIBRARIES := true 287 288 LOCAL_SHARED_LIBRARIES := \ 289 libstlport \ 290 libdl 291 292 # Add target alias to "gyp_all_modules" target. 293 .PHONY: gyp_all_modules 294 gyp_all_modules: third_party_libwebp_libwebp_dsp_gyp 295 296 # Alias gyp target name. 297 .PHONY: libwebp_dsp 298 libwebp_dsp: third_party_libwebp_libwebp_dsp_gyp 299 300 include $(BUILD_STATIC_LIBRARY) 301