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