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['PLATFORM'] == 'win32': | 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['PLATFORM'] == 'posix': | 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.ChromeStaticLibrary('bspatch', input_files) |
OLD | NEW |