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 --param=ssp-buffer-size=4 \ 49 -fno-exceptions \ 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 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -Wno-unused-but-set-variable \ 69 -Wno-address \ 70 -Wno-format-security \ 71 -Wno-return-type \ 72 -Wno-sequence-point \ 73 -Os \ 74 -g \ 75 -fdata-sections \ 76 -ffunction-sections \ 77 -funwind-tables 78 79 MY_DEFS_Debug := \ 80 '-DV8_DEPRECATION_WARNINGS' \ 81 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISABLE_NACL' \ 85 '-DCHROMIUM_BUILD' \ 86 '-DUSE_LIBJPEG_TURBO=1' \ 87 '-DENABLE_WEBRTC=1' \ 88 '-DUSE_PROPRIETARY_CODECS' \ 89 '-DENABLE_BROWSER_CDMS' \ 90 '-DENABLE_CONFIGURATION_POLICY' \ 91 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 92 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 93 '-DENABLE_EGLIMAGE=1' \ 94 '-DCLD_VERSION=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-DENABLE_MANAGED_USERS=1' \ 97 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 98 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 99 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 100 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 101 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 102 '-DVIDEO_HOLE=1' \ 103 '-D_7ZIP_ST' \ 104 '-D_LZMA_PROB32' \ 105 '-DUSE_OPENSSL=1' \ 106 '-DUSE_OPENSSL_CERTS=1' \ 107 '-DANDROID' \ 108 '-D__GNU_SOURCE=1' \ 109 '-DUSE_STLPORT=1' \ 110 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 111 '-DCHROME_BUILD_ID=""' \ 112 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 113 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 114 '-D_DEBUG' 115 116 117 # Include paths placed before CFLAGS/CPPFLAGS 118 LOCAL_C_INCLUDES_Debug := \ 119 $(gyp_shared_intermediate_dir) \ 120 $(LOCAL_PATH)/third_party/lzma_sdk \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125 126 # Flags passed to only C++ (and not C) files. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wno-deprecated \ 132 -Wno-non-virtual-dtor \ 133 -Wno-sign-promo \ 134 -Wno-non-virtual-dtor 135 136 137 LOCAL_FDO_SUPPORT_Debug := false 138 139 # Flags passed to both C and C++ files. 140 MY_CFLAGS_Release := \ 141 --param=ssp-buffer-size=4 \ 142 -fno-exceptions \ 143 -fno-strict-aliasing \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -Wno-unused-local-typedefs \ 150 -Wno-format \ 151 -ffunction-sections \ 152 -funwind-tables \ 153 -g \ 154 -fno-short-enums \ 155 -finline-limit=64 \ 156 -Wa,--noexecstack \ 157 -U_FORTIFY_SOURCE \ 158 -Wno-extra \ 159 -Wno-ignored-qualifiers \ 160 -Wno-type-limits \ 161 -Wno-unused-but-set-variable \ 162 -Wno-address \ 163 -Wno-format-security \ 164 -Wno-return-type \ 165 -Wno-sequence-point \ 166 -Os \ 167 -fno-ident \ 168 -fdata-sections \ 169 -ffunction-sections \ 170 -funwind-tables 171 172 MY_DEFS_Release := \ 173 '-DV8_DEPRECATION_WARNINGS' \ 174 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 175 '-D_FILE_OFFSET_BITS=64' \ 176 '-DNO_TCMALLOC' \ 177 '-DDISABLE_NACL' \ 178 '-DCHROMIUM_BUILD' \ 179 '-DUSE_LIBJPEG_TURBO=1' \ 180 '-DENABLE_WEBRTC=1' \ 181 '-DUSE_PROPRIETARY_CODECS' \ 182 '-DENABLE_BROWSER_CDMS' \ 183 '-DENABLE_CONFIGURATION_POLICY' \ 184 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 185 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 186 '-DENABLE_EGLIMAGE=1' \ 187 '-DCLD_VERSION=1' \ 188 '-DENABLE_PRINTING=1' \ 189 '-DENABLE_MANAGED_USERS=1' \ 190 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 191 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 192 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 193 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 194 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 195 '-DVIDEO_HOLE=1' \ 196 '-D_7ZIP_ST' \ 197 '-D_LZMA_PROB32' \ 198 '-DUSE_OPENSSL=1' \ 199 '-DUSE_OPENSSL_CERTS=1' \ 200 '-DANDROID' \ 201 '-D__GNU_SOURCE=1' \ 202 '-DUSE_STLPORT=1' \ 203 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 204 '-DCHROME_BUILD_ID=""' \ 205 '-DNDEBUG' \ 206 '-DNVALGRIND' \ 207 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 208 209 210 # Include paths placed before CFLAGS/CPPFLAGS 211 LOCAL_C_INCLUDES_Release := \ 212 $(gyp_shared_intermediate_dir) \ 213 $(LOCAL_PATH)/third_party/lzma_sdk \ 214 $(PWD)/frameworks/wilhelm/include \ 215 $(PWD)/bionic \ 216 $(PWD)/external/stlport/stlport 217 218 219 # Flags passed to only C++ (and not C) files. 220 LOCAL_CPPFLAGS_Release := \ 221 -fno-rtti \ 222 -fno-threadsafe-statics \ 223 -fvisibility-inlines-hidden \ 224 -Wno-deprecated \ 225 -Wno-non-virtual-dtor \ 226 -Wno-sign-promo \ 227 -Wno-non-virtual-dtor 228 229 230 LOCAL_FDO_SUPPORT_Release := false 231 232 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 233 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 234 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 235 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 236 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 237 ### Rules for final target. 238 239 LOCAL_LDFLAGS_Debug := \ 240 -Wl,-z,now \ 241 -Wl,-z,relro \ 242 -Wl,--fatal-warnings \ 243 -Wl,-z,noexecstack \ 244 -fPIC \ 245 -nostdlib \ 246 -Wl,--no-undefined \ 247 -Wl,--exclude-libs=ALL \ 248 -Wl,--warn-shared-textrel \ 249 -Wl,-O1 \ 250 -Wl,--as-needed 251 252 253 LOCAL_LDFLAGS_Release := \ 254 -Wl,-z,now \ 255 -Wl,-z,relro \ 256 -Wl,--fatal-warnings \ 257 -Wl,-z,noexecstack \ 258 -fPIC \ 259 -nostdlib \ 260 -Wl,--no-undefined \ 261 -Wl,--exclude-libs=ALL \ 262 -Wl,-O1 \ 263 -Wl,--as-needed \ 264 -Wl,--gc-sections \ 265 -Wl,--warn-shared-textrel 266 267 268 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 269 270 LOCAL_STATIC_LIBRARIES := 271 272 # Enable grouping to fix circular references 273 LOCAL_GROUP_STATIC_LIBRARIES := true 274 275 LOCAL_SHARED_LIBRARIES := \ 276 libstlport \ 277 libdl 278 279 # Add target alias to "gyp_all_modules" target. 280 .PHONY: gyp_all_modules 281 gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp 282 283 # Alias gyp target name. 284 .PHONY: lzma_sdk 285 lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp 286 287 include $(BUILD_STATIC_LIBRARY) 288