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