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 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building the media_unittests{,.exe} executable. | 6 Configuration for building the media_unittests{,.exe} executable. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 '/ignore:4199', | 44 '/ignore:4199', |
45 '/nxcompat', | 45 '/nxcompat', |
46 ], | 46 ], |
47 ) | 47 ) |
48 | 48 |
49 input_files = [ | 49 input_files = [ |
50 'base/data_buffer_unittest.cc', | 50 'base/data_buffer_unittest.cc', |
51 'base/run_all_unittests.cc', | 51 'base/run_all_unittests.cc', |
52 ] | 52 ] |
53 | 53 |
| 54 input_files = ChromeFileList([ |
| 55 # TODO(sgk): violate standard indentation so we don't have to |
| 56 # reindent too much when we remove the explicit MSVSFilter() calls |
| 57 # in favor of generating the hierarchy to reflect the file system. |
| 58 MSVSFilter('support', [ |
| 59 'base/run_all_unittests.cc', |
| 60 ]), |
| 61 MSVSFilter('tests', [ |
| 62 MSVSFilter('base', [ |
| 63 'base/data_buffer_unittest.cc', |
| 64 ]), |
| 65 MSVSFilter('audio', [ |
| 66 'audio/win/audio_output_win_unittest.cc', |
| 67 ]), |
| 68 ]), |
| 69 ]) |
| 70 |
| 71 if not env.Bit('windows'): |
| 72 input_files.Remove( |
| 73 'audio/win/audio_output_win_unittest.cc', |
| 74 ) |
| 75 |
54 env.ChromeTestProgram('media_unittests', input_files) | 76 env.ChromeTestProgram('media_unittests', input_files) |
55 | 77 |
56 env.ChromeMSVSProject('$MEDIA_DIR/build/media_unittests.vcproj', | 78 p = env.ChromeMSVSProject('build/media_unittests.vcproj', |
57 dependencies = [ | 79 dest=('$CHROME_SRC_DIR/media/' + |
58 '$BASE_DIR/build/base.vcproj', | 80 'build/media_unittests.vcproj'), |
59 '$MEDIA_DIR/build/media.vcproj', | 81 guid='{C8C6183C-B03C-11DD-B471-DFD256D89593}', |
60 '$TESTING_DIR/gtest.vcproj', | 82 keyword='Win32Proj', |
61 ], | 83 # TODO(sgk): when we can intuit the hierarchy |
62 guid='{C8C6183C-B03C-11DD-B471-DFD256D89593}') | 84 # from the built targets. |
| 85 #buildtargets=TODO, |
| 86 files=input_files, |
| 87 tools=[ |
| 88 'VCPreBuildEventTool', |
| 89 'VCCustomBuildTool', |
| 90 'VCXMLDataGeneratorTool', |
| 91 'VCWebServiceProxyGeneratorTool', |
| 92 'VCMIDLTool', |
| 93 MSVSTool('VCCLCompilerTool', |
| 94 PreprocessorDefinitions='UNIT_TEST'), |
| 95 'VCManagedResourceCompilerTool', |
| 96 'VCResourceCompilerTool', |
| 97 'VCPreLinkEventTool', |
| 98 'VCLinkerTool', |
| 99 'VCALinkTool', |
| 100 'VCManifestTool', |
| 101 'VCXDCMakeTool', |
| 102 'VCBscMakeTool', |
| 103 'VCFxCopTool', |
| 104 'VCAppVerifierTool', |
| 105 'VCWebDeploymentTool', |
| 106 'VCPostBuildEventTool', |
| 107 ], |
| 108 ConfigurationType='1') |
| 109 |
| 110 p.AddConfig('Debug|Win32', |
| 111 InheritedPropertySheets=[ |
| 112 '$(SolutionDir)../build/debug.vsprops', |
| 113 '$(SolutionDir)../testing/using_gtest.vsprops', |
| 114 ]) |
| 115 |
| 116 p.AddConfig('Release|Win32', |
| 117 InheritedPropertySheets=[ |
| 118 '$(SolutionDir)../build/release.vsprops', |
| 119 '$(SolutionDir)../testing/using_gtest.vsprops', |
| 120 ]) |
OLD | NEW |