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