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_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/lzma_sdk/7zAlloc.c \ 27 third_party/lzma_sdk/7zBuf.c \ 28 third_party/lzma_sdk/7zCrc.c \ 29 third_party/lzma_sdk/7zCrcOpt.c \ 30 third_party/lzma_sdk/7zDec.c \ 31 third_party/lzma_sdk/7zFile.c \ 32 third_party/lzma_sdk/7zIn.c \ 33 third_party/lzma_sdk/7zStream.c \ 34 third_party/lzma_sdk/Alloc.c \ 35 third_party/lzma_sdk/Bcj2.c \ 36 third_party/lzma_sdk/Bra.c \ 37 third_party/lzma_sdk/Bra86.c \ 38 third_party/lzma_sdk/CpuArch.c \ 39 third_party/lzma_sdk/LzFind.c \ 40 third_party/lzma_sdk/Lzma2Dec.c \ 41 third_party/lzma_sdk/LzmaEnc.c \ 42 third_party/lzma_sdk/LzmaDec.c \ 43 third_party/lzma_sdk/LzmaLib.c 44 45 46 # Flags passed to both C and C++ files. 47 MY_CFLAGS_Debug := \ 48 -fstack-protector \ 49 --param=ssp-buffer-size=4 \ 50 -fno-exceptions \ 51 -fno-strict-aliasing \ 52 -Wno-unused-parameter \ 53 -Wno-missing-field-initializers \ 54 -fvisibility=hidden \ 55 -pipe \ 56 -fPIC \ 57 -Wno-unused-local-typedefs \ 58 -Wno-format \ 59 -fno-tree-sra \ 60 -fno-partial-inlining \ 61 -fno-early-inlining \ 62 -fno-tree-copy-prop \ 63 -fno-tree-loop-optimize \ 64 -fno-move-loop-invariants \ 65 -fno-caller-saves \ 66 -Wno-psabi \ 67 -ffunction-sections \ 68 -funwind-tables \ 69 -g \ 70 -fstack-protector \ 71 -fno-short-enums \ 72 -finline-limit=64 \ 73 -Wa,--noexecstack \ 74 -U_FORTIFY_SOURCE \ 75 -Wno-extra \ 76 -Wno-ignored-qualifiers \ 77 -Wno-type-limits \ 78 -Wno-unused-but-set-variable \ 79 -Wno-address \ 80 -Wno-format-security \ 81 -Wno-return-type \ 82 -Wno-sequence-point \ 83 -Os \ 84 -g \ 85 -fdata-sections \ 86 -ffunction-sections \ 87 -fomit-frame-pointer \ 88 -funwind-tables 89 90 MY_DEFS_Debug := \ 91 '-DV8_DEPRECATION_WARNINGS' \ 92 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 93 '-D_FILE_OFFSET_BITS=64' \ 94 '-DNO_TCMALLOC' \ 95 '-DDISABLE_NACL' \ 96 '-DCHROMIUM_BUILD' \ 97 '-DUSE_LIBJPEG_TURBO=1' \ 98 '-DENABLE_WEBRTC=1' \ 99 '-DUSE_PROPRIETARY_CODECS' \ 100 '-DENABLE_BROWSER_CDMS' \ 101 '-DENABLE_CONFIGURATION_POLICY' \ 102 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 103 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 104 '-DENABLE_EGLIMAGE=1' \ 105 '-DCLD_VERSION=1' \ 106 '-DENABLE_PRINTING=1' \ 107 '-DENABLE_MANAGED_USERS=1' \ 108 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 109 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 110 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 111 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 112 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 113 '-DVIDEO_HOLE=1' \ 114 '-D_7ZIP_ST' \ 115 '-D_LZMA_PROB32' \ 116 '-DUSE_OPENSSL=1' \ 117 '-DUSE_OPENSSL_CERTS=1' \ 118 '-DANDROID' \ 119 '-D__GNU_SOURCE=1' \ 120 '-DUSE_STLPORT=1' \ 121 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 122 '-DCHROME_BUILD_ID=""' \ 123 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 124 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 125 '-D_DEBUG' 126 127 128 # Include paths placed before CFLAGS/CPPFLAGS 129 LOCAL_C_INCLUDES_Debug := \ 130 $(gyp_shared_intermediate_dir) \ 131 $(LOCAL_PATH)/third_party/lzma_sdk \ 132 $(PWD)/frameworks/wilhelm/include \ 133 $(PWD)/bionic \ 134 $(PWD)/external/stlport/stlport 135 136 137 # Flags passed to only C++ (and not C) files. 138 LOCAL_CPPFLAGS_Debug := \ 139 -fno-rtti \ 140 -fno-threadsafe-statics \ 141 -fvisibility-inlines-hidden \ 142 -Wno-deprecated \ 143 -Wno-abi \ 144 -Wno-non-virtual-dtor \ 145 -Wno-sign-promo \ 146 -Wno-non-virtual-dtor 147 148 149 LOCAL_FDO_SUPPORT_Debug := false 150 151 # Flags passed to both C and C++ files. 152 MY_CFLAGS_Release := \ 153 -fstack-protector \ 154 --param=ssp-buffer-size=4 \ 155 -fno-exceptions \ 156 -fno-strict-aliasing \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -Wno-format \ 164 -fno-tree-sra \ 165 -fno-partial-inlining \ 166 -fno-early-inlining \ 167 -fno-tree-copy-prop \ 168 -fno-tree-loop-optimize \ 169 -fno-move-loop-invariants \ 170 -fno-caller-saves \ 171 -Wno-psabi \ 172 -ffunction-sections \ 173 -funwind-tables \ 174 -g \ 175 -fstack-protector \ 176 -fno-short-enums \ 177 -finline-limit=64 \ 178 -Wa,--noexecstack \ 179 -U_FORTIFY_SOURCE \ 180 -Wno-extra \ 181 -Wno-ignored-qualifiers \ 182 -Wno-type-limits \ 183 -Wno-unused-but-set-variable \ 184 -Wno-address \ 185 -Wno-format-security \ 186 -Wno-return-type \ 187 -Wno-sequence-point \ 188 -Os \ 189 -fno-ident \ 190 -fdata-sections \ 191 -ffunction-sections \ 192 -fomit-frame-pointer \ 193 -funwind-tables 194 195 MY_DEFS_Release := \ 196 '-DV8_DEPRECATION_WARNINGS' \ 197 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 198 '-D_FILE_OFFSET_BITS=64' \ 199 '-DNO_TCMALLOC' \ 200 '-DDISABLE_NACL' \ 201 '-DCHROMIUM_BUILD' \ 202 '-DUSE_LIBJPEG_TURBO=1' \ 203 '-DENABLE_WEBRTC=1' \ 204 '-DUSE_PROPRIETARY_CODECS' \ 205 '-DENABLE_BROWSER_CDMS' \ 206 '-DENABLE_CONFIGURATION_POLICY' \ 207 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 208 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 209 '-DENABLE_EGLIMAGE=1' \ 210 '-DCLD_VERSION=1' \ 211 '-DENABLE_PRINTING=1' \ 212 '-DENABLE_MANAGED_USERS=1' \ 213 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 214 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 215 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 216 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 217 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 218 '-DVIDEO_HOLE=1' \ 219 '-D_7ZIP_ST' \ 220 '-D_LZMA_PROB32' \ 221 '-DUSE_OPENSSL=1' \ 222 '-DUSE_OPENSSL_CERTS=1' \ 223 '-DANDROID' \ 224 '-D__GNU_SOURCE=1' \ 225 '-DUSE_STLPORT=1' \ 226 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 227 '-DCHROME_BUILD_ID=""' \ 228 '-DNDEBUG' \ 229 '-DNVALGRIND' \ 230 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 231 232 233 # Include paths placed before CFLAGS/CPPFLAGS 234 LOCAL_C_INCLUDES_Release := \ 235 $(gyp_shared_intermediate_dir) \ 236 $(LOCAL_PATH)/third_party/lzma_sdk \ 237 $(PWD)/frameworks/wilhelm/include \ 238 $(PWD)/bionic \ 239 $(PWD)/external/stlport/stlport 240 241 242 # Flags passed to only C++ (and not C) files. 243 LOCAL_CPPFLAGS_Release := \ 244 -fno-rtti \ 245 -fno-threadsafe-statics \ 246 -fvisibility-inlines-hidden \ 247 -Wno-deprecated \ 248 -Wno-abi \ 249 -Wno-non-virtual-dtor \ 250 -Wno-sign-promo \ 251 -Wno-non-virtual-dtor 252 253 254 LOCAL_FDO_SUPPORT_Release := false 255 256 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 257 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 258 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 259 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 260 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 261 ### Rules for final target. 262 263 LOCAL_LDFLAGS_Debug := \ 264 -Wl,-z,now \ 265 -Wl,-z,relro \ 266 -Wl,--fatal-warnings \ 267 -Wl,-z,noexecstack \ 268 -fPIC \ 269 -Wl,-z,relro \ 270 -Wl,-z,now \ 271 -fuse-ld=gold \ 272 -nostdlib \ 273 -Wl,--no-undefined \ 274 -Wl,--exclude-libs=ALL \ 275 -Wl,--icf=safe \ 276 -Wl,--warn-shared-textrel \ 277 -Wl,-O1 \ 278 -Wl,--as-needed 279 280 281 LOCAL_LDFLAGS_Release := \ 282 -Wl,-z,now \ 283 -Wl,-z,relro \ 284 -Wl,--fatal-warnings \ 285 -Wl,-z,noexecstack \ 286 -fPIC \ 287 -Wl,-z,relro \ 288 -Wl,-z,now \ 289 -fuse-ld=gold \ 290 -nostdlib \ 291 -Wl,--no-undefined \ 292 -Wl,--exclude-libs=ALL \ 293 -Wl,--icf=safe \ 294 -Wl,-O1 \ 295 -Wl,--as-needed \ 296 -Wl,--gc-sections \ 297 -Wl,--warn-shared-textrel 298 299 300 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 301 302 LOCAL_STATIC_LIBRARIES := 303 304 # Enable grouping to fix circular references 305 LOCAL_GROUP_STATIC_LIBRARIES := true 306 307 LOCAL_SHARED_LIBRARIES := \ 308 libstlport \ 309 libdl 310 311 # Add target alias to "gyp_all_modules" target. 312 .PHONY: gyp_all_modules 313 gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp 314 315 # Alias gyp target name. 316 .PHONY: lzma_sdk 317 lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp 318 319 include $(BUILD_STATIC_LIBRARY) 320