OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 __doc__ = """ | |
6 Configuration for building bzip2.lib / libbzip2.a. | |
7 """ | |
8 | |
9 Import('env') | |
10 | |
11 if env.WantSystemLib('bzip2'): | |
12 Return() | |
13 | |
14 env = env.Clone() | |
15 | |
16 env.Append( | |
17 CPPDEFINES = [ | |
18 'BZ_NO_STDIO', | |
19 ], | |
20 ) | |
21 | |
22 if env.Bit('windows'): | |
23 env.Append( | |
24 CCFLAGS = [ | |
25 '/TC', | |
26 '/wd4996', | |
27 '/wd4800', | |
28 ], | |
29 ) | |
30 | |
31 input_files = ChromeFileList([ | |
32 'blocksort.c', | |
33 'bzlib.c', | |
34 'bzlib.h', | |
35 'bzlib_private.h', | |
36 'compress.c', | |
37 'crctable.c', | |
38 'decompress.c', | |
39 'huffman.c', | |
40 'randtable.c', | |
41 ]) | |
42 | |
43 env.ChromeLibrary('bzip2', input_files) | |
44 | |
45 p = env.ChromeMSVSProject('bzip2.vcproj', | |
46 dest='$CHROME_SRC_DIR/third_party/bzip2/bzip2.vcproj', | |
47 guid='{2A70CBF0-847E-4E3A-B926-542A656DC7FE}', | |
48 # TODO(sgk): when we can intuit the hierarchy | |
49 # from the built targets. | |
50 #buildtargets=TODO, | |
51 files=input_files, | |
52 tools=[ | |
53 MSVSTool('VCCLCompilerTool', | |
54 PreprocessorDefinitions=['BZ_NO_STDIO'], | |
55 DisableSpecificWarnings='4996'), | |
56 'VCLibrarianTool', | |
57 ], | |
58 ConfigurationType='4') | |
59 | |
60 p.AddConfig('Debug|Win32', | |
61 InheritedPropertySheets=[ | |
62 '$(SolutionDir)../build/common.vsprops', | |
63 '$(SolutionDir)../build/debug.vsprops', | |
64 '$(SolutionDir)../build/external_code.vsprops', | |
65 ]) | |
66 | |
67 p.AddConfig('Release|Win32', | |
68 InheritedPropertySheets=[ | |
69 '$(SolutionDir)../build/common.vsprops', | |
70 '$(SolutionDir)../build/release.vsprops', | |
71 '$(SolutionDir)../build/external_code.vsprops', | |
72 ]) | |
OLD | NEW |