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 env.ApplySConscript([ | 9 env.ApplySConscript([ |
10 '$LZMA_SDK_DIR/using_lzma_sdk.scons', | 10 '$LZMA_SDK_DIR/using_lzma_sdk.scons', |
11 ]) | 11 ]) |
12 | 12 |
13 if env.Bit('windows'): | 13 if env.Bit('windows'): |
14 env.Append( | 14 env.Append( |
15 CCFLAGS = [ | 15 CCFLAGS = [ |
16 '/TP', | 16 '/TP', |
17 '/wd4800', | 17 '/wd4800', |
18 ], | 18 ], |
19 ) | 19 ) |
20 elif env.Bit('linux'): | 20 elif env.Bit('linux'): |
21 # We're not responsible for bad warning hygiene in this third party code. | 21 # We're not responsible for bad warning hygiene in this third party code. |
22 env.FilterOut( | 22 env.FilterOut( |
23 CXXFLAGS = ['-Wall'], | 23 CXXFLAGS = ['-Wall'], |
24 ) | 24 ) |
25 | 25 |
26 input_files = [ | 26 input_files = [ |
27 'mbspatch.cc', | 27 'mbspatch.cc', |
28 ] | 28 ] |
29 | 29 |
30 env.ChromeStaticLibrary('bspatch', input_files) | 30 env.ChromeLibrary('bspatch', input_files) |
31 | 31 |
32 env.ChromeMSVSProject('$BSPATCH_DIR/bspatch.vcproj', | 32 env.ChromeMSVSProject('$BSPATCH_DIR/bspatch.vcproj', |
33 guid='{D7ED06E8-6138-4CE3-A906-5EF1D9C804E0}') | 33 guid='{D7ED06E8-6138-4CE3-A906-5EF1D9C804E0}') |
OLD | NEW |