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