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