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