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.Bit('windows'): | 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 = ChromeFileList([ |
| 27 'gtest/include/gtest/internal/gtest-death-test-internal.h', |
27 'gtest/src/gtest-death-test.cc', | 28 'gtest/src/gtest-death-test.cc', |
| 29 'gtest/include/gtest/gtest-death-test.h', |
28 'gtest/src/gtest-filepath.cc', | 30 'gtest/src/gtest-filepath.cc', |
| 31 'gtest/include/gtest/internal/gtest-filepath.h', |
| 32 'gtest/src/gtest-internal-inl.h', |
| 33 'gtest/include/gtest/internal/gtest-internal.h', |
| 34 'gtest/include/gtest/gtest-message.h', |
29 'gtest/src/gtest-port.cc', | 35 'gtest/src/gtest-port.cc', |
| 36 'gtest/include/gtest/internal/gtest-port.h', |
| 37 'gtest/include/gtest/gtest-spi.h', |
| 38 'gtest/include/gtest/internal/gtest-string.h', |
30 'gtest/src/gtest.cc', | 39 'gtest/src/gtest.cc', |
| 40 'gtest/include/gtest/gtest.h', |
| 41 'gtest/include/gtest/gtest_pred_impl.h', |
| 42 'gtest/include/gtest/gtest_prod.h', |
31 'multiprocess_func_list.cc', | 43 'multiprocess_func_list.cc', |
32 ] | 44 ]) |
33 | 45 |
34 env.ChromeStaticLibrary('gtest', input_files) | 46 env.ChromeStaticLibrary('gtest', input_files) |
35 | 47 |
36 env.ChromeMSVSProject('$TESTING_DIR/gtest.vcproj', | 48 p = env.ChromeMSVSProject('gtest.vcproj', |
37 guid='{BFE8E2A7-3B3B-43B0-A994-3058B852DB8B}') | 49 guid='{BFE8E2A7-3B3B-43B0-A994-3058B852DB8B}', |
| 50 files=input_files, |
| 51 tools = [ |
| 52 'VCPreBuildEventTool', |
| 53 'VCCustomBuildTool', |
| 54 'VCXMLDataGeneratorTool', |
| 55 'VCWebServiceProxyGeneratorTool', |
| 56 'VCMIDLTool', |
| 57 'VCCLCompilerTool', |
| 58 'VCManagedResourceCompilerTool', |
| 59 'VCResourceCompilerTool', |
| 60 'VCPreLinkEventTool', |
| 61 'VCLibrarianTool', |
| 62 'VCALinkTool', |
| 63 'VCXDCMakeTool', |
| 64 'VCBscMakeTool', |
| 65 'VCFxCopTool', |
| 66 'VCPostBuildEventTool', |
| 67 ]) |
| 68 |
| 69 p.AddConfig('Debug|Win32', |
| 70 ConfigurationType = '4', |
| 71 InheritedPropertySheets = [ |
| 72 '$(SolutionDir)../build/debug.vsprops', |
| 73 './using_gtest.vsprops', |
| 74 ]) |
| 75 |
| 76 p.AddConfig('Release|Win32', |
| 77 ConfigurationType = '4', |
| 78 InheritedPropertySheets = [ |
| 79 '$(SolutionDir)../build/release.vsprops', |
| 80 './using_gtest.vsprops', |
| 81 ]) |
| 82 |
| 83 env.AlwaysBuild(p) |
| 84 |
| 85 i = env.Command('$CHROME_SRC_DIR/testing/gtest.vcproj', p, |
| 86 Copy('$TARGET', '$SOURCE')) |
| 87 Alias('msvs', i) |
OLD | NEW |