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_utils_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/utils/bit_reader.c \ 27 third_party/libwebp/utils/bit_writer.c \ 28 third_party/libwebp/utils/color_cache.c \ 29 third_party/libwebp/utils/filters.c \ 30 third_party/libwebp/utils/huffman.c \ 31 third_party/libwebp/utils/huffman_encode.c \ 32 third_party/libwebp/utils/quant_levels.c \ 33 third_party/libwebp/utils/quant_levels_dec.c \ 34 third_party/libwebp/utils/random.c \ 35 third_party/libwebp/utils/rescaler.c \ 36 third_party/libwebp/utils/thread.c \ 37 third_party/libwebp/utils/utils.c 38 39 40 # Flags passed to both C and C++ files. 41 MY_CFLAGS_Debug := \ 42 --param=ssp-buffer-size=4 \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-unused-local-typedefs \ 51 -Wno-format \ 52 -msse2 \ 53 -mfpmath=sse \ 54 -mmmx \ 55 -m32 \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fno-short-enums \ 60 -finline-limit=64 \ 61 -Wa,--noexecstack \ 62 -U_FORTIFY_SOURCE \ 63 -Wno-extra \ 64 -Wno-ignored-qualifiers \ 65 -Wno-type-limits \ 66 -Wno-unused-but-set-variable \ 67 -fno-stack-protector \ 68 -Wno-address \ 69 -Wno-format-security \ 70 -Wno-return-type \ 71 -Wno-sequence-point \ 72 -Os \ 73 -g \ 74 -fdata-sections \ 75 -ffunction-sections \ 76 -fomit-frame-pointer \ 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 -msse2 \ 150 -mfpmath=sse \ 151 -mmmx \ 152 -m32 \ 153 -ffunction-sections \ 154 -funwind-tables \ 155 -g \ 156 -fno-short-enums \ 157 -finline-limit=64 \ 158 -Wa,--noexecstack \ 159 -U_FORTIFY_SOURCE \ 160 -Wno-extra \ 161 -Wno-ignored-qualifiers \ 162 -Wno-type-limits \ 163 -Wno-unused-but-set-variable \ 164 -fno-stack-protector \ 165 -Wno-address \ 166 -Wno-format-security \ 167 -Wno-return-type \ 168 -Wno-sequence-point \ 169 -Os \ 170 -fno-ident \ 171 -fdata-sections \ 172 -ffunction-sections \ 173 -fomit-frame-pointer \ 174 -funwind-tables 175 176 MY_DEFS_Release := \ 177 '-DV8_DEPRECATION_WARNINGS' \ 178 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 179 '-D_FILE_OFFSET_BITS=64' \ 180 '-DNO_TCMALLOC' \ 181 '-DDISABLE_NACL' \ 182 '-DCHROMIUM_BUILD' \ 183 '-DUSE_LIBJPEG_TURBO=1' \ 184 '-DENABLE_WEBRTC=1' \ 185 '-DUSE_PROPRIETARY_CODECS' \ 186 '-DENABLE_BROWSER_CDMS' \ 187 '-DENABLE_CONFIGURATION_POLICY' \ 188 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 189 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 190 '-DENABLE_EGLIMAGE=1' \ 191 '-DCLD_VERSION=1' \ 192 '-DENABLE_PRINTING=1' \ 193 '-DENABLE_MANAGED_USERS=1' \ 194 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 195 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 196 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 197 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 198 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 199 '-DVIDEO_HOLE=1' \ 200 '-DUSE_OPENSSL=1' \ 201 '-DUSE_OPENSSL_CERTS=1' \ 202 '-DANDROID' \ 203 '-D__GNU_SOURCE=1' \ 204 '-DUSE_STLPORT=1' \ 205 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 206 '-DCHROME_BUILD_ID=""' \ 207 '-DNDEBUG' \ 208 '-DNVALGRIND' \ 209 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 210 211 212 # Include paths placed before CFLAGS/CPPFLAGS 213 LOCAL_C_INCLUDES_Release := \ 214 $(gyp_shared_intermediate_dir) \ 215 $(LOCAL_PATH)/third_party/libwebp \ 216 $(PWD)/frameworks/wilhelm/include \ 217 $(PWD)/bionic \ 218 $(PWD)/external/stlport/stlport 219 220 221 # Flags passed to only C++ (and not C) files. 222 LOCAL_CPPFLAGS_Release := \ 223 -fno-rtti \ 224 -fno-threadsafe-statics \ 225 -fvisibility-inlines-hidden \ 226 -Wno-deprecated \ 227 -Wno-non-virtual-dtor \ 228 -Wno-sign-promo \ 229 -Wno-non-virtual-dtor 230 231 232 LOCAL_FDO_SUPPORT_Release := false 233 234 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 235 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 236 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 237 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 238 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 239 ### Rules for final target. 240 241 LOCAL_LDFLAGS_Debug := \ 242 -Wl,-z,now \ 243 -Wl,-z,relro \ 244 -Wl,--fatal-warnings \ 245 -Wl,-z,noexecstack \ 246 -fPIC \ 247 -m32 \ 248 -fuse-ld=gold \ 249 -nostdlib \ 250 -Wl,--no-undefined \ 251 -Wl,--exclude-libs=ALL \ 252 -Wl,--warn-shared-textrel \ 253 -Wl,-O1 \ 254 -Wl,--as-needed 255 256 257 LOCAL_LDFLAGS_Release := \ 258 -Wl,-z,now \ 259 -Wl,-z,relro \ 260 -Wl,--fatal-warnings \ 261 -Wl,-z,noexecstack \ 262 -fPIC \ 263 -m32 \ 264 -fuse-ld=gold \ 265 -nostdlib \ 266 -Wl,--no-undefined \ 267 -Wl,--exclude-libs=ALL \ 268 -Wl,-O1 \ 269 -Wl,--as-needed \ 270 -Wl,--gc-sections \ 271 -Wl,--warn-shared-textrel 272 273 274 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 275 276 LOCAL_STATIC_LIBRARIES := 277 278 # Enable grouping to fix circular references 279 LOCAL_GROUP_STATIC_LIBRARIES := true 280 281 LOCAL_SHARED_LIBRARIES := \ 282 libstlport \ 283 libdl 284 285 # Add target alias to "gyp_all_modules" target. 286 .PHONY: gyp_all_modules 287 gyp_all_modules: third_party_libwebp_libwebp_utils_gyp 288 289 # Alias gyp target name. 290 .PHONY: libwebp_utils 291 libwebp_utils: third_party_libwebp_libwebp_utils_gyp 292 293 include $(BUILD_STATIC_LIBRARY) 294