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_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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 --param=ssp-buffer-size=4 \ 48 -fno-exceptions \ 49 -fno-strict-aliasing \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-format \ 56 -m32 \ 57 -mmmx \ 58 -march=pentium4 \ 59 -msse2 \ 60 -mfpmath=sse \ 61 -fuse-ld=gold \ 62 -ffunction-sections \ 63 -funwind-tables \ 64 -g \ 65 -fno-short-enums \ 66 -finline-limit=64 \ 67 -Wa,--noexecstack \ 68 -U_FORTIFY_SOURCE \ 69 -Wno-extra \ 70 -Wno-ignored-qualifiers \ 71 -Wno-type-limits \ 72 -fno-stack-protector \ 73 -Wno-address \ 74 -Wno-format-security \ 75 -Wno-return-type \ 76 -Wno-sequence-point \ 77 -Os \ 78 -g \ 79 -fomit-frame-pointer \ 80 -fdata-sections \ 81 -ffunction-sections 82 83MY_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 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_CONFIGURATION_POLICY' \ 92 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 93 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 94 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 95 '-DUSE_OPENSSL=1' \ 96 '-DENABLE_EGLIMAGE=1' \ 97 '-DCLD_VERSION=1' \ 98 '-DENABLE_PRINTING=1' \ 99 '-DENABLE_MANAGED_USERS=1' \ 100 '-D_7ZIP_ST' \ 101 '-D_LZMA_PROB32' \ 102 '-DANDROID' \ 103 '-D__GNU_SOURCE=1' \ 104 '-DUSE_STLPORT=1' \ 105 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 106 '-DCHROME_BUILD_ID=""' \ 107 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 108 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 109 '-D_DEBUG' 110 111 112# Include paths placed before CFLAGS/CPPFLAGS 113LOCAL_C_INCLUDES_Debug := \ 114 $(LOCAL_PATH)/third_party/lzma_sdk \ 115 $(PWD)/frameworks/wilhelm/include \ 116 $(PWD)/bionic \ 117 $(PWD)/external/stlport/stlport 118 119 120# Flags passed to only C++ (and not C) files. 121LOCAL_CPPFLAGS_Debug := \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wno-deprecated \ 126 -Wno-error=c++0x-compat \ 127 -Wno-non-virtual-dtor \ 128 -Wno-sign-promo \ 129 -Wno-non-virtual-dtor 130 131 132# Flags passed to both C and C++ files. 133MY_CFLAGS_Release := \ 134 --param=ssp-buffer-size=4 \ 135 -fno-exceptions \ 136 -fno-strict-aliasing \ 137 -Wno-unused-parameter \ 138 -Wno-missing-field-initializers \ 139 -fvisibility=hidden \ 140 -pipe \ 141 -fPIC \ 142 -Wno-format \ 143 -m32 \ 144 -mmmx \ 145 -march=pentium4 \ 146 -msse2 \ 147 -mfpmath=sse \ 148 -fuse-ld=gold \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fno-short-enums \ 153 -finline-limit=64 \ 154 -Wa,--noexecstack \ 155 -U_FORTIFY_SOURCE \ 156 -Wno-extra \ 157 -Wno-ignored-qualifiers \ 158 -Wno-type-limits \ 159 -fno-stack-protector \ 160 -Wno-address \ 161 -Wno-format-security \ 162 -Wno-return-type \ 163 -Wno-sequence-point \ 164 -Os \ 165 -fno-ident \ 166 -fdata-sections \ 167 -ffunction-sections \ 168 -fomit-frame-pointer \ 169 -fno-unwind-tables \ 170 -fno-asynchronous-unwind-tables 171 172MY_DEFS_Release := \ 173 '-DV8_DEPRECATION_WARNINGS' \ 174 '-D_FILE_OFFSET_BITS=64' \ 175 '-DNO_TCMALLOC' \ 176 '-DDISABLE_NACL' \ 177 '-DCHROMIUM_BUILD' \ 178 '-DUSE_LIBJPEG_TURBO=1' \ 179 '-DUSE_PROPRIETARY_CODECS' \ 180 '-DENABLE_CONFIGURATION_POLICY' \ 181 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 182 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 183 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 184 '-DUSE_OPENSSL=1' \ 185 '-DENABLE_EGLIMAGE=1' \ 186 '-DCLD_VERSION=1' \ 187 '-DENABLE_PRINTING=1' \ 188 '-DENABLE_MANAGED_USERS=1' \ 189 '-D_7ZIP_ST' \ 190 '-D_LZMA_PROB32' \ 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 202LOCAL_C_INCLUDES_Release := \ 203 $(LOCAL_PATH)/third_party/lzma_sdk \ 204 $(PWD)/frameworks/wilhelm/include \ 205 $(PWD)/bionic \ 206 $(PWD)/external/stlport/stlport 207 208 209# Flags passed to only C++ (and not C) files. 210LOCAL_CPPFLAGS_Release := \ 211 -fno-rtti \ 212 -fno-threadsafe-statics \ 213 -fvisibility-inlines-hidden \ 214 -Wno-deprecated \ 215 -Wno-error=c++0x-compat \ 216 -Wno-non-virtual-dtor \ 217 -Wno-sign-promo \ 218 -Wno-non-virtual-dtor 219 220 221LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 222LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 223LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 224### Rules for final target. 225 226LOCAL_LDFLAGS_Debug := \ 227 -Wl,-z,now \ 228 -Wl,-z,relro \ 229 -Wl,-z,noexecstack \ 230 -fPIC \ 231 -m32 \ 232 -fuse-ld=gold \ 233 -nostdlib \ 234 -Wl,--no-undefined \ 235 -Wl,--exclude-libs=ALL \ 236 -Wl,--fatal-warnings \ 237 -Wl,--gc-sections \ 238 -Wl,--warn-shared-textrel \ 239 -Wl,-O1 \ 240 -Wl,--as-needed 241 242 243LOCAL_LDFLAGS_Release := \ 244 -Wl,-z,now \ 245 -Wl,-z,relro \ 246 -Wl,-z,noexecstack \ 247 -fPIC \ 248 -m32 \ 249 -fuse-ld=gold \ 250 -nostdlib \ 251 -Wl,--no-undefined \ 252 -Wl,--exclude-libs=ALL \ 253 -Wl,-O1 \ 254 -Wl,--as-needed \ 255 -Wl,--gc-sections \ 256 -Wl,--fatal-warnings \ 257 -Wl,--warn-shared-textrel 258 259 260LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 261 262LOCAL_STATIC_LIBRARIES := 263 264# Enable grouping to fix circular references 265LOCAL_GROUP_STATIC_LIBRARIES := true 266 267LOCAL_SHARED_LIBRARIES := \ 268 libstlport \ 269 libdl 270 271# Add target alias to "gyp_all_modules" target. 272.PHONY: gyp_all_modules 273gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp 274 275# Alias gyp target name. 276.PHONY: lzma_sdk 277lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp 278 279include $(BUILD_STATIC_LIBRARY) 280