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