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