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