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 Import('env') | |
6 | |
7 env = env.Clone() | |
8 | |
9 env.ApplySConscript([ | |
10 '$LZMA_SDK_DIR/using_lzma_sdk.scons', | |
11 ]) | |
12 | |
13 if env.Bit('windows'): | |
14 env.Append( | |
15 CCFLAGS = [ | |
16 '/TP', | |
17 '/wd4800', | |
18 ], | |
19 ) | |
20 elif env.Bit('linux'): | |
21 # We're not responsible for bad warning hygiene in this third party code. | |
22 env.FilterOut( | |
23 CXXFLAGS = ['-Wall'], | |
24 ) | |
25 | |
26 input_files = ChromeFileList([ | |
27 'mbspatch.cc', | |
28 'mbspatch.h', | |
29 ]) | |
30 | |
31 env.ChromeLibrary('bspatch', input_files) | |
32 | |
33 p = env.ChromeMSVSProject('bspatch.vcproj', | |
34 dest=('$CHROME_SRC_DIR/third_party/bspatch/' + | |
35 '/bspatch.vcproj'), | |
36 guid='{D7ED06E8-6138-4CE3-A906-5EF1D9C804E0}', | |
37 # TODO(sgk): when we can intuit the hierarchy | |
38 # from the built targets. | |
39 #buildtargets=TODO, | |
40 files=input_files, | |
41 relative_path_prefix='./', | |
42 tools=[ | |
43 'VCCLCompilerTool', | |
44 'VCLibrarianTool', | |
45 ], | |
46 ConfigurationType='4') | |
47 | |
48 p.AddConfig('Debug|Win32', | |
49 InheritedPropertySheets=[ | |
50 '$(SolutionDir)../build/common.vsprops', | |
51 '$(SolutionDir)../build/debug.vsprops', | |
52 '$(SolutionDir)../build/external_code.vsprops', | |
53 '$(SolutionDir)../third_party/bspatch/using_bspatch.vsprops', | |
54 '$(SolutionDir)../third_party/lzma_sdk/using_lzma_sdk.vsprops', | |
55 ]) | |
56 | |
57 p.AddConfig('Release|Win32', | |
58 InheritedPropertySheets=[ | |
59 '$(SolutionDir)../build/common.vsprops', | |
60 '$(SolutionDir)../build/release.vsprops', | |
61 '$(SolutionDir)../build/external_code.vsprops', | |
62 '$(SolutionDir)../third_party/bspatch/using_bspatch.vsprops', | |
63 '$(SolutionDir)../third_party/lzma_sdk/using_lzma_sdk.vsprops', | |
64 ]) | |
OLD | NEW |