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.Prepend( | 9 env.Prepend( |
10 CPPPATH = [ | 10 CPPPATH = [ |
11 '$GTEST_DIR', | 11 '$GTEST_DIR', |
12 '$GTEST_DIR/include', | 12 '$GTEST_DIR/include', |
13 ], | 13 ], |
14 ) | 14 ) |
15 | 15 |
16 if env['PLATFORM'] == 'win32': | 16 if env.Bit('windows'): |
17 env.Append( | 17 env.Append( |
18 CCFLAGS = [ | 18 CCFLAGS = [ |
19 '/TP', | 19 '/TP', |
20 | 20 |
21 '/WX', | 21 '/WX', |
22 '/Wp64', | 22 '/Wp64', |
23 ], | 23 ], |
24 ) | 24 ) |
25 | 25 |
26 input_files = [ | 26 input_files = [ |
27 'gtest/src/gtest-death-test.cc', | 27 'gtest/src/gtest-death-test.cc', |
28 'gtest/src/gtest-filepath.cc', | 28 'gtest/src/gtest-filepath.cc', |
29 'gtest/src/gtest-port.cc', | 29 'gtest/src/gtest-port.cc', |
30 'gtest/src/gtest.cc', | 30 'gtest/src/gtest.cc', |
31 'multiprocess_func_list.cc', | 31 'multiprocess_func_list.cc', |
32 ] | 32 ] |
33 | 33 |
34 env.ChromeStaticLibrary('gtest', input_files) | 34 env.ChromeStaticLibrary('gtest', input_files) |
35 | 35 |
OLD | NEW |