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 -fno-strict-aliasing \ 33 -Wno-unused-parameter \ 34 -Wno-missing-field-initializers \ 35 -fvisibility=hidden \ 36 -pipe \ 37 -fPIC \ 38 -Wno-unused-local-typedefs \ 39 -Wno-format \ 40 -m64 \ 41 -march=x86-64 \ 42 -ffunction-sections \ 43 -funwind-tables \ 44 -g \ 45 -fstack-protector \ 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 -Wno-address \ 55 -Wno-format-security \ 56 -Wno-return-type \ 57 -Wno-sequence-point \ 58 -Os \ 59 -g \ 60 -gdwarf-4 \ 61 -fdata-sections \ 62 -ffunction-sections \ 63 -fomit-frame-pointer \ 64 -funwind-tables 65 66 MY_DEFS_Debug := \ 67 '-DV8_DEPRECATION_WARNINGS' \ 68 '-D_FILE_OFFSET_BITS=64' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DUSE_LIBJPEG_TURBO=1' \ 73 '-DENABLE_WEBRTC=1' \ 74 '-DUSE_PROPRIETARY_CODECS' \ 75 '-DENABLE_BROWSER_CDMS' \ 76 '-DENABLE_CONFIGURATION_POLICY' \ 77 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 78 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DCLD_VERSION=1' \ 81 '-DENABLE_PRINTING=1' \ 82 '-DENABLE_MANAGED_USERS=1' \ 83 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 84 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 85 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 86 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 87 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 88 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 89 '-DVIDEO_HOLE=1' \ 90 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 91 '-DUSE_OPENSSL=1' \ 92 '-DUSE_OPENSSL_CERTS=1' \ 93 '-DANDROID' \ 94 '-D__GNU_SOURCE=1' \ 95 '-DUSE_STLPORT=1' \ 96 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 97 '-DCHROME_BUILD_ID=""' \ 98 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 99 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 100 '-D_DEBUG' 101 102 103 # Include paths placed before CFLAGS/CPPFLAGS 104 LOCAL_C_INCLUDES_Debug := \ 105 $(gyp_shared_intermediate_dir) \ 106 $(LOCAL_PATH)/third_party/libwebp \ 107 $(PWD)/frameworks/wilhelm/include \ 108 $(PWD)/bionic \ 109 $(PWD)/external/stlport/stlport 110 111 112 # Flags passed to only C++ (and not C) files. 113 LOCAL_CPPFLAGS_Debug := \ 114 -fno-exceptions \ 115 -fno-rtti \ 116 -fno-threadsafe-statics \ 117 -fvisibility-inlines-hidden \ 118 -Wno-deprecated \ 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 -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 -m64 \ 140 -march=x86-64 \ 141 -ffunction-sections \ 142 -funwind-tables \ 143 -g \ 144 -fstack-protector \ 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 -fomit-frame-pointer \ 162 -funwind-tables 163 164 MY_DEFS_Release := \ 165 '-DV8_DEPRECATION_WARNINGS' \ 166 '-D_FILE_OFFSET_BITS=64' \ 167 '-DNO_TCMALLOC' \ 168 '-DDISABLE_NACL' \ 169 '-DCHROMIUM_BUILD' \ 170 '-DUSE_LIBJPEG_TURBO=1' \ 171 '-DENABLE_WEBRTC=1' \ 172 '-DUSE_PROPRIETARY_CODECS' \ 173 '-DENABLE_BROWSER_CDMS' \ 174 '-DENABLE_CONFIGURATION_POLICY' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DENABLE_EGLIMAGE=1' \ 178 '-DCLD_VERSION=1' \ 179 '-DENABLE_PRINTING=1' \ 180 '-DENABLE_MANAGED_USERS=1' \ 181 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 182 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 183 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 184 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 185 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 186 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 187 '-DVIDEO_HOLE=1' \ 188 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 189 '-DUSE_OPENSSL=1' \ 190 '-DUSE_OPENSSL_CERTS=1' \ 191 '-DANDROID' \ 192 '-D__GNU_SOURCE=1' \ 193 '-DUSE_STLPORT=1' \ 194 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 195 '-DCHROME_BUILD_ID=""' \ 196 '-DNDEBUG' \ 197 '-DNVALGRIND' \ 198 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 199 200 201 # Include paths placed before CFLAGS/CPPFLAGS 202 LOCAL_C_INCLUDES_Release := \ 203 $(gyp_shared_intermediate_dir) \ 204 $(LOCAL_PATH)/third_party/libwebp \ 205 $(PWD)/frameworks/wilhelm/include \ 206 $(PWD)/bionic \ 207 $(PWD)/external/stlport/stlport 208 209 210 # Flags passed to only C++ (and not C) files. 211 LOCAL_CPPFLAGS_Release := \ 212 -fno-exceptions \ 213 -fno-rtti \ 214 -fno-threadsafe-statics \ 215 -fvisibility-inlines-hidden \ 216 -Wno-deprecated \ 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