1 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 config("lzma_sdk_config") { 6 include_dirs = [ "." ] 7 } 8 9 static_library("lzma_sdk") { 10 sources = [ 11 "7z.h", 12 "7zAlloc.c", 13 "7zAlloc.h", 14 "7zBuf.c", 15 "7zBuf.h", 16 "7zCrc.c", 17 "7zCrc.h", 18 "7zCrcOpt.c", 19 "7zDec.c", 20 "7zFile.c", 21 "7zFile.h", 22 "7zIn.c", 23 "7zStream.c", 24 "Alloc.c", 25 "Alloc.h", 26 "Bcj2.c", 27 "Bcj2.h", 28 "Bra.c", 29 "Bra.h", 30 "Bra86.c", 31 "CpuArch.c", 32 "CpuArch.h", 33 "LzFind.c", 34 "LzFind.h", 35 "LzHash.h", 36 "Lzma2Dec.c", 37 "Lzma2Dec.h", 38 "LzmaEnc.c", 39 "LzmaEnc.h", 40 "LzmaDec.c", 41 "LzmaDec.h", 42 "LzmaLib.c", 43 "LzmaLib.h", 44 "Types.h", 45 ] 46 47 defines = [ 48 "_7ZIP_ST", 49 "_LZMA_PROB32", 50 ] 51 52 configs -= [ "//build/config/compiler:chromium_code" ] 53 configs += [ "//build/config/compiler:no_chromium_code" ] 54 55 public_configs = [ ":lzma_sdk_config" ] 56 } 57