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_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/libwebp/dsp/alpha_processing.c \ 26 third_party/libwebp/dsp/cpu.c \ 27 third_party/libwebp/dsp/dec.c \ 28 third_party/libwebp/dsp/dec_clip_tables.c \ 29 third_party/libwebp/dsp/dec_mips32.c \ 30 third_party/libwebp/dsp/dec_sse2.c \ 31 third_party/libwebp/dsp/enc.c \ 32 third_party/libwebp/dsp/enc_avx2.c \ 33 third_party/libwebp/dsp/enc_mips32.c \ 34 third_party/libwebp/dsp/enc_sse2.c \ 35 third_party/libwebp/dsp/lossless.c \ 36 third_party/libwebp/dsp/lossless_mips32.c \ 37 third_party/libwebp/dsp/lossless_sse2.c \ 38 third_party/libwebp/dsp/upsampling.c \ 39 third_party/libwebp/dsp/upsampling_sse2.c \ 40 third_party/libwebp/dsp/yuv.c \ 41 third_party/libwebp/dsp/yuv_mips32.c \ 42 third_party/libwebp/dsp/yuv_sse2.c 43 44 45 # Flags passed to both C and C++ files. 46 MY_CFLAGS_Debug := \ 47 -fstack-protector \ 48 --param=ssp-buffer-size=4 \ 49 \ 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 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -Wno-address \ 71 -Wno-format-security \ 72 -Wno-return-type \ 73 -Wno-sequence-point \ 74 -Os \ 75 -g \ 76 -gdwarf-4 \ 77 -fdata-sections \ 78 -ffunction-sections \ 79 -fomit-frame-pointer \ 80 -funwind-tables 81 82 MY_DEFS_Debug := \ 83 '-DV8_DEPRECATION_WARNINGS' \ 84 '-D_FILE_OFFSET_BITS=64' \ 85 '-DNO_TCMALLOC' \ 86 '-DDISABLE_NACL' \ 87 '-DCHROMIUM_BUILD' \ 88 '-DUSE_LIBJPEG_TURBO=1' \ 89 '-DENABLE_WEBRTC=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_BROWSER_CDMS' \ 92 '-DENABLE_CONFIGURATION_POLICY' \ 93 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 94 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DCLD_VERSION=1' \ 97 '-DENABLE_PRINTING=1' \ 98 '-DENABLE_MANAGED_USERS=1' \ 99 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 100 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 101 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 102 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 103 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 104 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 105 '-DVIDEO_HOLE=1' \ 106 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 107 '-DUSE_OPENSSL=1' \ 108 '-DUSE_OPENSSL_CERTS=1' \ 109 '-DANDROID' \ 110 '-D__GNU_SOURCE=1' \ 111 '-DUSE_STLPORT=1' \ 112 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 113 '-DCHROME_BUILD_ID=""' \ 114 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 115 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 116 '-D_DEBUG' 117 118 119 # Include paths placed before CFLAGS/CPPFLAGS 120 LOCAL_C_INCLUDES_Debug := \ 121 $(gyp_shared_intermediate_dir) \ 122 $(LOCAL_PATH)/third_party/libwebp \ 123 $(PWD)/frameworks/wilhelm/include \ 124 $(PWD)/bionic \ 125 $(PWD)/external/stlport/stlport 126 127 128 # Flags passed to only C++ (and not C) files. 129 LOCAL_CPPFLAGS_Debug := \ 130 -fno-exceptions \ 131 -fno-rtti \ 132 -fno-threadsafe-statics \ 133 -fvisibility-inlines-hidden \ 134 -Wno-deprecated \ 135 -Wno-uninitialized \ 136 -std=gnu++11 \ 137 -Wno-narrowing \ 138 -Wno-literal-suffix \ 139 -Wno-non-virtual-dtor \ 140 -Wno-sign-promo \ 141 -Wno-non-virtual-dtor 142 143 144 # Flags passed to both C and C++ files. 145 MY_CFLAGS_Release := \ 146 -fstack-protector \ 147 --param=ssp-buffer-size=4 \ 148 \ 149 -fno-strict-aliasing \ 150 -Wno-unused-parameter \ 151 -Wno-missing-field-initializers \ 152 -fvisibility=hidden \ 153 -pipe \ 154 -fPIC \ 155 -Wno-unused-local-typedefs \ 156 -Wno-format \ 157 -ffunction-sections \ 158 -funwind-tables \ 159 -g \ 160 -fstack-protector \ 161 -fno-short-enums \ 162 -finline-limit=64 \ 163 -Wa,--noexecstack \ 164 -U_FORTIFY_SOURCE \ 165 -Wno-extra \ 166 -Wno-ignored-qualifiers \ 167 -Wno-type-limits \ 168 -Wno-unused-but-set-variable \ 169 -Wno-address \ 170 -Wno-format-security \ 171 -Wno-return-type \ 172 -Wno-sequence-point \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer \ 178 -funwind-tables 179 180 MY_DEFS_Release := \ 181 '-DV8_DEPRECATION_WARNINGS' \ 182 '-D_FILE_OFFSET_BITS=64' \ 183 '-DNO_TCMALLOC' \ 184 '-DDISABLE_NACL' \ 185 '-DCHROMIUM_BUILD' \ 186 '-DUSE_LIBJPEG_TURBO=1' \ 187 '-DENABLE_WEBRTC=1' \ 188 '-DUSE_PROPRIETARY_CODECS' \ 189 '-DENABLE_BROWSER_CDMS' \ 190 '-DENABLE_CONFIGURATION_POLICY' \ 191 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 192 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 193 '-DENABLE_EGLIMAGE=1' \ 194 '-DCLD_VERSION=1' \ 195 '-DENABLE_PRINTING=1' \ 196 '-DENABLE_MANAGED_USERS=1' \ 197 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 198 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 199 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 200 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 201 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 202 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 203 '-DVIDEO_HOLE=1' \ 204 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 205 '-DUSE_OPENSSL=1' \ 206 '-DUSE_OPENSSL_CERTS=1' \ 207 '-DANDROID' \ 208 '-D__GNU_SOURCE=1' \ 209 '-DUSE_STLPORT=1' \ 210 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 211 '-DCHROME_BUILD_ID=""' \ 212 '-DNDEBUG' \ 213 '-DNVALGRIND' \ 214 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 215 216 217 # Include paths placed before CFLAGS/CPPFLAGS 218 LOCAL_C_INCLUDES_Release := \ 219 $(gyp_shared_intermediate_dir) \ 220 $(LOCAL_PATH)/third_party/libwebp \ 221 $(PWD)/frameworks/wilhelm/include \ 222 $(PWD)/bionic \ 223 $(PWD)/external/stlport/stlport 224 225 226 # Flags passed to only C++ (and not C) files. 227 LOCAL_CPPFLAGS_Release := \ 228 -fno-exceptions \ 229 -fno-rtti \ 230 -fno-threadsafe-statics \ 231 -fvisibility-inlines-hidden \ 232 -Wno-deprecated \ 233 -Wno-uninitialized \ 234 -std=gnu++11 \ 235 -Wno-narrowing \ 236 -Wno-literal-suffix \ 237 -Wno-non-virtual-dtor \ 238 -Wno-sign-promo \ 239 -Wno-non-virtual-dtor 240 241 242 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 243 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 244 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 245 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 246 ### Rules for final target. 247 248 LOCAL_STATIC_LIBRARIES := \ 249 cpufeatures 250 251 # Enable grouping to fix circular references 252 LOCAL_GROUP_STATIC_LIBRARIES := true 253 254 LOCAL_SHARED_LIBRARIES := \ 255 libstlport \ 256 libdl 257 258 # Add target alias to "gyp_all_modules" target. 259 .PHONY: gyp_all_modules 260 gyp_all_modules: third_party_libwebp_libwebp_dsp_gyp 261 262 # Alias gyp target name. 263 .PHONY: libwebp_dsp 264 libwebp_dsp: third_party_libwebp_libwebp_dsp_gyp 265 266 include $(BUILD_STATIC_LIBRARY) 267