1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_lzma_sdk_lzma_sdk_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/lzma_sdk/7zAlloc.c \ 26 third_party/lzma_sdk/7zBuf.c \ 27 third_party/lzma_sdk/7zCrc.c \ 28 third_party/lzma_sdk/7zCrcOpt.c \ 29 third_party/lzma_sdk/7zDec.c \ 30 third_party/lzma_sdk/7zFile.c \ 31 third_party/lzma_sdk/7zIn.c \ 32 third_party/lzma_sdk/7zStream.c \ 33 third_party/lzma_sdk/Alloc.c \ 34 third_party/lzma_sdk/Bcj2.c \ 35 third_party/lzma_sdk/Bra.c \ 36 third_party/lzma_sdk/Bra86.c \ 37 third_party/lzma_sdk/CpuArch.c \ 38 third_party/lzma_sdk/LzFind.c \ 39 third_party/lzma_sdk/Lzma2Dec.c \ 40 third_party/lzma_sdk/LzmaEnc.c \ 41 third_party/lzma_sdk/LzmaDec.c \ 42 third_party/lzma_sdk/LzmaLib.c 43 44 45# Flags passed to both C and C++ files. 46MY_CFLAGS_Debug := \ 47 -fstack-protector \ 48 --param=ssp-buffer-size=4 \ 49 \ 50 -fno-strict-aliasing \ 51 -Wno-unused-parameter \ 52 -Wno-missing-field-initializers \ 53 -fvisibility=hidden \ 54 -pipe \ 55 -fPIC \ 56 -Wno-unused-local-typedefs \ 57 -Wno-format \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -Wno-address \ 71 -Wno-format-security \ 72 -Wno-return-type \ 73 -Wno-sequence-point \ 74 -Os \ 75 -g \ 76 -gdwarf-4 \ 77 -fdata-sections \ 78 -ffunction-sections \ 79 -fomit-frame-pointer \ 80 -funwind-tables 81 82MY_DEFS_Debug := \ 83 '-DV8_DEPRECATION_WARNINGS' \ 84 '-D_FILE_OFFSET_BITS=64' \ 85 '-DNO_TCMALLOC' \ 86 '-DDISABLE_NACL' \ 87 '-DCHROMIUM_BUILD' \ 88 '-DUSE_LIBJPEG_TURBO=1' \ 89 '-DENABLE_WEBRTC=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_BROWSER_CDMS' \ 92 '-DENABLE_CONFIGURATION_POLICY' \ 93 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 94 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DCLD_VERSION=1' \ 97 '-DENABLE_PRINTING=1' \ 98 '-DENABLE_MANAGED_USERS=1' \ 99 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 100 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 101 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 102 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 103 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 104 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 105 '-DVIDEO_HOLE=1' \ 106 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 107 '-D_7ZIP_ST' \ 108 '-D_LZMA_PROB32' \ 109 '-DUSE_OPENSSL=1' \ 110 '-DUSE_OPENSSL_CERTS=1' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 117 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 118 '-D_DEBUG' 119 120 121# Include paths placed before CFLAGS/CPPFLAGS 122LOCAL_C_INCLUDES_Debug := \ 123 $(gyp_shared_intermediate_dir) \ 124 $(LOCAL_PATH)/third_party/lzma_sdk \ 125 $(PWD)/frameworks/wilhelm/include \ 126 $(PWD)/bionic \ 127 $(PWD)/external/stlport/stlport 128 129 130# Flags passed to only C++ (and not C) files. 131LOCAL_CPPFLAGS_Debug := \ 132 -fno-exceptions \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wno-deprecated \ 137 -Wno-uninitialized \ 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. 147MY_CFLAGS_Release := \ 148 -fstack-protector \ 149 --param=ssp-buffer-size=4 \ 150 \ 151 -fno-strict-aliasing \ 152 -Wno-unused-parameter \ 153 -Wno-missing-field-initializers \ 154 -fvisibility=hidden \ 155 -pipe \ 156 -fPIC \ 157 -Wno-unused-local-typedefs \ 158 -Wno-format \ 159 -ffunction-sections \ 160 -funwind-tables \ 161 -g \ 162 -fstack-protector \ 163 -fno-short-enums \ 164 -finline-limit=64 \ 165 -Wa,--noexecstack \ 166 -U_FORTIFY_SOURCE \ 167 -Wno-extra \ 168 -Wno-ignored-qualifiers \ 169 -Wno-type-limits \ 170 -Wno-unused-but-set-variable \ 171 -Wno-address \ 172 -Wno-format-security \ 173 -Wno-return-type \ 174 -Wno-sequence-point \ 175 -Os \ 176 -fno-ident \ 177 -fdata-sections \ 178 -ffunction-sections \ 179 -fomit-frame-pointer \ 180 -funwind-tables 181 182MY_DEFS_Release := \ 183 '-DV8_DEPRECATION_WARNINGS' \ 184 '-D_FILE_OFFSET_BITS=64' \ 185 '-DNO_TCMALLOC' \ 186 '-DDISABLE_NACL' \ 187 '-DCHROMIUM_BUILD' \ 188 '-DUSE_LIBJPEG_TURBO=1' \ 189 '-DENABLE_WEBRTC=1' \ 190 '-DUSE_PROPRIETARY_CODECS' \ 191 '-DENABLE_BROWSER_CDMS' \ 192 '-DENABLE_CONFIGURATION_POLICY' \ 193 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 194 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 195 '-DENABLE_EGLIMAGE=1' \ 196 '-DCLD_VERSION=1' \ 197 '-DENABLE_PRINTING=1' \ 198 '-DENABLE_MANAGED_USERS=1' \ 199 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 200 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 201 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 202 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 203 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 204 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 205 '-DVIDEO_HOLE=1' \ 206 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 207 '-D_7ZIP_ST' \ 208 '-D_LZMA_PROB32' \ 209 '-DUSE_OPENSSL=1' \ 210 '-DUSE_OPENSSL_CERTS=1' \ 211 '-DANDROID' \ 212 '-D__GNU_SOURCE=1' \ 213 '-DUSE_STLPORT=1' \ 214 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 215 '-DCHROME_BUILD_ID=""' \ 216 '-DNDEBUG' \ 217 '-DNVALGRIND' \ 218 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 219 220 221# Include paths placed before CFLAGS/CPPFLAGS 222LOCAL_C_INCLUDES_Release := \ 223 $(gyp_shared_intermediate_dir) \ 224 $(LOCAL_PATH)/third_party/lzma_sdk \ 225 $(PWD)/frameworks/wilhelm/include \ 226 $(PWD)/bionic \ 227 $(PWD)/external/stlport/stlport 228 229 230# Flags passed to only C++ (and not C) files. 231LOCAL_CPPFLAGS_Release := \ 232 -fno-exceptions \ 233 -fno-rtti \ 234 -fno-threadsafe-statics \ 235 -fvisibility-inlines-hidden \ 236 -Wno-deprecated \ 237 -Wno-uninitialized \ 238 -std=gnu++11 \ 239 -Wno-narrowing \ 240 -Wno-literal-suffix \ 241 -Wno-non-virtual-dtor \ 242 -Wno-sign-promo \ 243 -Wno-non-virtual-dtor 244 245 246LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 247LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 248LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 249LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 250### Rules for final target. 251 252LOCAL_SHARED_LIBRARIES := \ 253 libstlport \ 254 libdl 255 256# Add target alias to "gyp_all_modules" target. 257.PHONY: gyp_all_modules 258gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp 259 260# Alias gyp target name. 261.PHONY: lzma_sdk 262lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp 263 264include $(BUILD_STATIC_LIBRARY) 265