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