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_enc_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/enc/alpha.c \ 26 third_party/libwebp/enc/analysis.c \ 27 third_party/libwebp/enc/backward_references.c \ 28 third_party/libwebp/enc/config.c \ 29 third_party/libwebp/enc/cost.c \ 30 third_party/libwebp/enc/filter.c \ 31 third_party/libwebp/enc/frame.c \ 32 third_party/libwebp/enc/histogram.c \ 33 third_party/libwebp/enc/iterator.c \ 34 third_party/libwebp/enc/picture.c \ 35 third_party/libwebp/enc/picture_csp.c \ 36 third_party/libwebp/enc/picture_psnr.c \ 37 third_party/libwebp/enc/picture_rescale.c \ 38 third_party/libwebp/enc/picture_tools.c \ 39 third_party/libwebp/enc/quant.c \ 40 third_party/libwebp/enc/syntax.c \ 41 third_party/libwebp/enc/token.c \ 42 third_party/libwebp/enc/tree.c \ 43 third_party/libwebp/enc/vp8l.c \ 44 third_party/libwebp/enc/webpenc.c 45 46 47 # Flags passed to both C and C++ files. 48 MY_CFLAGS_Debug := \ 49 -fstack-protector \ 50 --param=ssp-buffer-size=4 \ 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-caller-saves \ 61 -Wno-psabi \ 62 -fno-partial-inlining \ 63 -fno-early-inlining \ 64 -fno-tree-copy-prop \ 65 -fno-tree-loop-optimize \ 66 -fno-move-loop-invariants \ 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 -gdwarf-4 \ 86 -fdata-sections \ 87 -ffunction-sections \ 88 -fomit-frame-pointer \ 89 -funwind-tables 90 91 MY_DEFS_Debug := \ 92 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 110 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 111 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 112 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 113 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 114 '-DVIDEO_HOLE=1' \ 115 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 116 '-DUSE_OPENSSL=1' \ 117 '-DUSE_OPENSSL_CERTS=1' \ 118 '-DANDROID' \ 119 '-D__GNU_SOURCE=1' \ 120 '-DUSE_STLPORT=1' \ 121 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 122 '-DCHROME_BUILD_ID=""' \ 123 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 124 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 125 '-D_DEBUG' 126 127 128 # Include paths placed before CFLAGS/CPPFLAGS 129 LOCAL_C_INCLUDES_Debug := \ 130 $(gyp_shared_intermediate_dir) \ 131 $(LOCAL_PATH)/third_party/libwebp \ 132 $(PWD)/frameworks/wilhelm/include \ 133 $(PWD)/bionic \ 134 $(PWD)/external/stlport/stlport 135 136 137 # Flags passed to only C++ (and not C) files. 138 LOCAL_CPPFLAGS_Debug := \ 139 -fno-exceptions \ 140 -fno-rtti \ 141 -fno-threadsafe-statics \ 142 -fvisibility-inlines-hidden \ 143 -Wno-deprecated \ 144 -Wno-abi \ 145 -std=gnu++11 \ 146 -Wno-narrowing \ 147 -Wno-literal-suffix \ 148 -Wno-non-virtual-dtor \ 149 -Wno-sign-promo \ 150 -Wno-non-virtual-dtor 151 152 153 # Flags passed to both C and C++ files. 154 MY_CFLAGS_Release := \ 155 -fstack-protector \ 156 --param=ssp-buffer-size=4 \ 157 -fno-strict-aliasing \ 158 -Wno-unused-parameter \ 159 -Wno-missing-field-initializers \ 160 -fvisibility=hidden \ 161 -pipe \ 162 -fPIC \ 163 -Wno-unused-local-typedefs \ 164 -Wno-format \ 165 -fno-tree-sra \ 166 -fno-caller-saves \ 167 -Wno-psabi \ 168 -fno-partial-inlining \ 169 -fno-early-inlining \ 170 -fno-tree-copy-prop \ 171 -fno-tree-loop-optimize \ 172 -fno-move-loop-invariants \ 173 -ffunction-sections \ 174 -funwind-tables \ 175 -g \ 176 -fstack-protector \ 177 -fno-short-enums \ 178 -finline-limit=64 \ 179 -Wa,--noexecstack \ 180 -U_FORTIFY_SOURCE \ 181 -Wno-extra \ 182 -Wno-ignored-qualifiers \ 183 -Wno-type-limits \ 184 -Wno-unused-but-set-variable \ 185 -Wno-address \ 186 -Wno-format-security \ 187 -Wno-return-type \ 188 -Wno-sequence-point \ 189 -Os \ 190 -fno-ident \ 191 -fdata-sections \ 192 -ffunction-sections \ 193 -fomit-frame-pointer \ 194 -funwind-tables 195 196 MY_DEFS_Release := \ 197 '-DV8_DEPRECATION_WARNINGS' \ 198 '-D_FILE_OFFSET_BITS=64' \ 199 '-DNO_TCMALLOC' \ 200 '-DDISABLE_NACL' \ 201 '-DCHROMIUM_BUILD' \ 202 '-DUSE_LIBJPEG_TURBO=1' \ 203 '-DENABLE_WEBRTC=1' \ 204 '-DUSE_PROPRIETARY_CODECS' \ 205 '-DENABLE_BROWSER_CDMS' \ 206 '-DENABLE_CONFIGURATION_POLICY' \ 207 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 208 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 209 '-DENABLE_EGLIMAGE=1' \ 210 '-DCLD_VERSION=1' \ 211 '-DENABLE_PRINTING=1' \ 212 '-DENABLE_MANAGED_USERS=1' \ 213 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 214 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 215 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 216 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 217 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 218 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 219 '-DVIDEO_HOLE=1' \ 220 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 221 '-DUSE_OPENSSL=1' \ 222 '-DUSE_OPENSSL_CERTS=1' \ 223 '-DANDROID' \ 224 '-D__GNU_SOURCE=1' \ 225 '-DUSE_STLPORT=1' \ 226 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 227 '-DCHROME_BUILD_ID=""' \ 228 '-DNDEBUG' \ 229 '-DNVALGRIND' \ 230 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 231 232 233 # Include paths placed before CFLAGS/CPPFLAGS 234 LOCAL_C_INCLUDES_Release := \ 235 $(gyp_shared_intermediate_dir) \ 236 $(LOCAL_PATH)/third_party/libwebp \ 237 $(PWD)/frameworks/wilhelm/include \ 238 $(PWD)/bionic \ 239 $(PWD)/external/stlport/stlport 240 241 242 # Flags passed to only C++ (and not C) files. 243 LOCAL_CPPFLAGS_Release := \ 244 -fno-exceptions \ 245 -fno-rtti \ 246 -fno-threadsafe-statics \ 247 -fvisibility-inlines-hidden \ 248 -Wno-deprecated \ 249 -Wno-abi \ 250 -std=gnu++11 \ 251 -Wno-narrowing \ 252 -Wno-literal-suffix \ 253 -Wno-non-virtual-dtor \ 254 -Wno-sign-promo \ 255 -Wno-non-virtual-dtor 256 257 258 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 259 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 260 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 261 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 262 ### Rules for final target. 263 264 LOCAL_SHARED_LIBRARIES := \ 265 libstlport \ 266 libdl 267 268 # Add target alias to "gyp_all_modules" target. 269 .PHONY: gyp_all_modules 270 gyp_all_modules: third_party_libwebp_libwebp_enc_gyp 271 272 # Alias gyp target name. 273 .PHONY: libwebp_enc 274 libwebp_enc: third_party_libwebp_libwebp_enc_gyp 275 276 include $(BUILD_STATIC_LIBRARY) 277