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 -m64 \ 60 -march=x86-64 \ 61 -ffunction-sections \ 62 -funwind-tables \ 63 -g \ 64 -fstack-protector \ 65 -fno-short-enums \ 66 -finline-limit=64 \ 67 -Wa,--noexecstack \ 68 -U_FORTIFY_SOURCE \ 69 -Wno-extra \ 70 -Wno-ignored-qualifiers \ 71 -Wno-type-limits \ 72 -Wno-unused-but-set-variable \ 73 -Wno-address \ 74 -Wno-format-security \ 75 -Wno-return-type \ 76 -Wno-sequence-point \ 77 -Os \ 78 -g \ 79 -gdwarf-4 \ 80 -fdata-sections \ 81 -ffunction-sections \ 82 -fomit-frame-pointer \ 83 -funwind-tables 84 85 MY_DEFS_Debug := \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DENABLE_WEBRTC=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_BROWSER_CDMS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DCLD_VERSION=1' \ 100 '-DENABLE_PRINTING=1' \ 101 '-DENABLE_MANAGED_USERS=1' \ 102 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 103 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 109 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 110 '-DUSE_OPENSSL=1' \ 111 '-DUSE_OPENSSL_CERTS=1' \ 112 '-DANDROID' \ 113 '-D__GNU_SOURCE=1' \ 114 '-DUSE_STLPORT=1' \ 115 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 116 '-DCHROME_BUILD_ID=""' \ 117 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 118 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 119 '-D_DEBUG' 120 121 122 # Include paths placed before CFLAGS/CPPFLAGS 123 LOCAL_C_INCLUDES_Debug := \ 124 $(gyp_shared_intermediate_dir) \ 125 $(LOCAL_PATH)/third_party/libwebp \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131 # Flags passed to only C++ (and not C) files. 132 LOCAL_CPPFLAGS_Debug := \ 133 -fno-exceptions \ 134 -fno-rtti \ 135 -fno-threadsafe-statics \ 136 -fvisibility-inlines-hidden \ 137 -Wno-deprecated \ 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 -fno-strict-aliasing \ 151 -Wno-unused-parameter \ 152 -Wno-missing-field-initializers \ 153 -fvisibility=hidden \ 154 -pipe \ 155 -fPIC \ 156 -Wno-unused-local-typedefs \ 157 -Wno-format \ 158 -m64 \ 159 -march=x86-64 \ 160 -ffunction-sections \ 161 -funwind-tables \ 162 -g \ 163 -fstack-protector \ 164 -fno-short-enums \ 165 -finline-limit=64 \ 166 -Wa,--noexecstack \ 167 -U_FORTIFY_SOURCE \ 168 -Wno-extra \ 169 -Wno-ignored-qualifiers \ 170 -Wno-type-limits \ 171 -Wno-unused-but-set-variable \ 172 -Wno-address \ 173 -Wno-format-security \ 174 -Wno-return-type \ 175 -Wno-sequence-point \ 176 -Os \ 177 -fno-ident \ 178 -fdata-sections \ 179 -ffunction-sections \ 180 -fomit-frame-pointer \ 181 -funwind-tables 182 183 MY_DEFS_Release := \ 184 '-DV8_DEPRECATION_WARNINGS' \ 185 '-D_FILE_OFFSET_BITS=64' \ 186 '-DNO_TCMALLOC' \ 187 '-DDISABLE_NACL' \ 188 '-DCHROMIUM_BUILD' \ 189 '-DUSE_LIBJPEG_TURBO=1' \ 190 '-DENABLE_WEBRTC=1' \ 191 '-DUSE_PROPRIETARY_CODECS' \ 192 '-DENABLE_BROWSER_CDMS' \ 193 '-DENABLE_CONFIGURATION_POLICY' \ 194 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 195 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 196 '-DENABLE_EGLIMAGE=1' \ 197 '-DCLD_VERSION=1' \ 198 '-DENABLE_PRINTING=1' \ 199 '-DENABLE_MANAGED_USERS=1' \ 200 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 201 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 202 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 203 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 204 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 205 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 206 '-DVIDEO_HOLE=1' \ 207 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 208 '-DUSE_OPENSSL=1' \ 209 '-DUSE_OPENSSL_CERTS=1' \ 210 '-DANDROID' \ 211 '-D__GNU_SOURCE=1' \ 212 '-DUSE_STLPORT=1' \ 213 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 214 '-DCHROME_BUILD_ID=""' \ 215 '-DNDEBUG' \ 216 '-DNVALGRIND' \ 217 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 218 219 220 # Include paths placed before CFLAGS/CPPFLAGS 221 LOCAL_C_INCLUDES_Release := \ 222 $(gyp_shared_intermediate_dir) \ 223 $(LOCAL_PATH)/third_party/libwebp \ 224 $(PWD)/frameworks/wilhelm/include \ 225 $(PWD)/bionic \ 226 $(PWD)/external/stlport/stlport 227 228 229 # Flags passed to only C++ (and not C) files. 230 LOCAL_CPPFLAGS_Release := \ 231 -fno-exceptions \ 232 -fno-rtti \ 233 -fno-threadsafe-statics \ 234 -fvisibility-inlines-hidden \ 235 -Wno-deprecated \ 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