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