| 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.Prepend( | |
| 10 CPPPATH = [ | |
| 11 '$GTEST_DIR', | |
| 12 '$GTEST_DIR/include', | |
| 13 ], | |
| 14 ) | |
| 15 | |
| 16 if env.Bit('windows'): | |
| 17 env.Append( | |
| 18 CCFLAGS = [ | |
| 19 '/TP', | |
| 20 | |
| 21 '/WX', | |
| 22 '/Wp64', | |
| 23 ], | |
| 24 ) | |
| 25 | |
| 26 input_files = ChromeFileList([ | |
| 27 # TODO(sgk): violate standard indentation so we don't have to | |
| 28 # reindent too much when we remove the explicit MSVSFilter() calls | |
| 29 # in favor of generating the hierarchy to reflect the file system. | |
| 30 MSVSFilter('src', [ | |
| 31 'gtest/src/gtest-death-test.cc', | |
| 32 'gtest/src/gtest-filepath.cc', | |
| 33 'gtest/src/gtest-internal-inl.h', | |
| 34 'gtest/src/gtest-port.cc', | |
| 35 'gtest/src/gtest-test-part.cc', | |
| 36 'gtest/src/gtest.cc', | |
| 37 ]), | |
| 38 MSVSFilter('include', [ | |
| 39 'gtest/include/gtest/gtest-death-test.h', | |
| 40 'gtest/include/gtest/gtest-message.h', | |
| 41 'gtest/include/gtest/gtest-param-test.h', | |
| 42 'gtest/include/gtest/gtest-spi.h', | |
| 43 'gtest/include/gtest/gtest-test-part.h', | |
| 44 'gtest/include/gtest/gtest-typed-test.h', | |
| 45 'gtest/include/gtest/gtest.h', | |
| 46 'gtest/include/gtest/gtest_pred_impl.h', | |
| 47 'gtest/include/gtest/gtest_prod.h', | |
| 48 MSVSFilter('internal', [ | |
| 49 'gtest/include/gtest/internal/gtest-death-test-internal.h', | |
| 50 'gtest/include/gtest/internal/gtest-filepath.h', | |
| 51 'gtest/include/gtest/internal/gtest-internal.h', | |
| 52 'gtest/include/gtest/internal/gtest-linked_ptr.h', | |
| 53 'gtest/include/gtest/internal/gtest-param-util-generated.h', | |
| 54 'gtest/include/gtest/internal/gtest-param-util.h', | |
| 55 'gtest/include/gtest/internal/gtest-port.h', | |
| 56 'gtest/include/gtest/internal/gtest-string.h', | |
| 57 'gtest/include/gtest/internal/gtest-type-util.h', | |
| 58 ]), | |
| 59 ]), | |
| 60 'multiprocess_func_list.cc', | |
| 61 'multiprocess_func_list.h', | |
| 62 'platform_test.h', | |
| 63 ]) | |
| 64 | |
| 65 env.ChromeLibrary('gtest', input_files) | |
| 66 | |
| 67 p = env.ChromeMSVSProject('gtest.vcproj', | |
| 68 dest='$CHROME_SRC_DIR/testing/gtest.vcproj', | |
| 69 guid='{BFE8E2A7-3B3B-43B0-A994-3058B852DB8B}', | |
| 70 keyword='Win32Proj', | |
| 71 files=input_files, | |
| 72 relative_path_prefix=r'./', | |
| 73 tools = [ | |
| 74 'VCPreBuildEventTool', | |
| 75 'VCCustomBuildTool', | |
| 76 'VCXMLDataGeneratorTool', | |
| 77 'VCWebServiceProxyGeneratorTool', | |
| 78 'VCMIDLTool', | |
| 79 'VCCLCompilerTool', | |
| 80 'VCManagedResourceCompilerTool', | |
| 81 'VCResourceCompilerTool', | |
| 82 'VCPreLinkEventTool', | |
| 83 'VCLibrarianTool', | |
| 84 'VCALinkTool', | |
| 85 'VCXDCMakeTool', | |
| 86 'VCBscMakeTool', | |
| 87 'VCFxCopTool', | |
| 88 'VCPostBuildEventTool', | |
| 89 ], | |
| 90 ConfigurationType = '4') | |
| 91 | |
| 92 p.AddConfig('Debug|Win32', | |
| 93 InheritedPropertySheets = [ | |
| 94 '$(SolutionDir)../build/debug.vsprops', | |
| 95 './using_gtest.vsprops', | |
| 96 ]) | |
| 97 | |
| 98 p.AddConfig('Release|Win32', | |
| 99 InheritedPropertySheets = [ | |
| 100 '$(SolutionDir)../build/release.vsprops', | |
| 101 './using_gtest.vsprops', | |
| 102 ]) | |
| OLD | NEW |