1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
env = env.Clone()
if env.WantSystemLib('lzma_sdk'):
Return()
env.Prepend(
CPPPATH = [
'.',
'$CHROME_SRC_DIR',
]
)
env.Append(
CPPDEFINES = [
'_LZMA_PROB32',
'_LZMA_IN_CB',
],
)
if env.Bit('windows'):
env.Append(
CCFLAGS = [
'/TC',
'/wd4800',
],
)
input_files = [
'7zCrc.c',
'Archive/7z/7zAlloc.c',
'Archive/7z/7zBuffer.c',
'Archive/7z/7zDecode.c',
'Archive/7z/7zExtract.c',
'Archive/7z/7zHeader.c',
'Archive/7z/7zIn.c',
'Archive/7z/7zItem.c',
'Archive/7z/7zMethodID.c',
'Compress/Branch/BranchX86.c',
'Compress/Branch/BranchX86_2.c',
'Compress/Lzma/LzmaDecode.c',
]
env.ChromeLibrary('lzma_sdk', input_files)
env.ChromeMSVSProject('$LZMA_SDK_DIR/7z_C.vcproj',
name='lzma_sdk',
guid='{B84553C8-5676-427B-B3E4-23DDDC4DBC7B}')
|