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 '$BASE_DIR/using_base.scons', | 10 '$BASE_DIR/using_base.scons', |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 ], | 53 ], |
54 LIBS = [ | 54 LIBS = [ |
55 'comsupp', | 55 'comsupp', |
56 'oleacc', | 56 'oleacc', |
57 'psapi', | 57 'psapi', |
58 'rpcrt4', | 58 'rpcrt4', |
59 'winmm', | 59 'winmm', |
60 ], | 60 ], |
61 ) | 61 ) |
62 | 62 |
63 input_files = [ | 63 input_files = ChromeFileList([ |
| 64 # TODO(sgk): violate standard indentation so we don't have to |
| 65 # reindent too much when we remove the explicit MSVSFilter() calls |
| 66 # in favor of generating the hierarchy to reflect the file system. |
| 67 MSVSFilter('Common', [ |
| 68 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', |
| 69 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', |
| 70 '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX', |
| 71 '$CHROME_DIR/test/testing_browser_process.h', |
| 72 '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX', |
| 73 '$CHROME_DIR/test/ui/ui_test.h', |
| 74 '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX', |
| 75 ]), |
| 76 MSVSFilter('MemoryUsage', [ |
64 '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX', | 77 '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX', |
65 '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX', | 78 '$CHROME_DIR/test/perf/mem_usage.h', |
66 '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX', | 79 ]), |
67 '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX', | 80 MSVSFilter('TestPageCycler', [ |
68 'page_cycler_test.cc', | 81 'page_cycler_test.cc', |
69 ] | 82 ]), |
| 83 ]) |
| 84 |
| 85 if not env.Bit('windows'): |
| 86 # Windows-specific. |
| 87 input_files.Remove( |
| 88 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', |
| 89 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', |
| 90 ) |
70 | 91 |
71 # TODO(port): | 92 # TODO(port): |
72 if env.Bit('windows'): | 93 if env.Bit('windows'): |
73 env.ChromeTestProgram('page_cycler_tests', input_files) | 94 env.ChromeTestProgram('page_cycler_tests', input_files) |
74 | 95 |
75 env.ChromeMSVSProject('$CHROME_DIR/test/page_cycler/page_cycler_tests.vcproj', | 96 p = env.ChromeMSVSProject('page_cycler_tests.vcproj', |
76 dependencies = [ | 97 dest=('$CHROME_SRC_DIR/chrome/' |
77 '$CHROME_DIR/test/automation/automation.vcproj', | 98 + 'test/page_cycler/page_cycler_tests.vcproj'), |
78 '$BASE_DIR/build/base.vcproj', | 99 guid='{C9E0BD1D-B175-4A91-8380-3FDC81FAB9D7}', |
79 '$NET_DIR/build/net.vcproj', | 100 dependencies = [ |
80 '$CHROME_DIR/browser/browser.vcproj', | 101 '$CHROME_DIR/test/automation/automation.vcproj', |
81 '$MODP_B64_DIR/modp_b64.vcproj', | 102 '$BASE_DIR/build/base.vcproj', |
82 '$CHROME_DIR/app/chrome_exe.vcproj', | 103 '$NET_DIR/build/net.vcproj', |
83 '$ZLIB_DIR/zlib.vcproj', | 104 '$CHROME_DIR/browser/browser.vcproj', |
84 '$CHROME_DIR/common/common.vcproj', | 105 '$MODP_B64_DIR/modp_b64.vcproj', |
85 '$ICU38_DIR/build/icu.vcproj', | 106 '$CHROME_DIR/app/chrome_exe.vcproj', |
86 '$BASE_DIR/build/base_gfx.vcproj', | 107 '$ZLIB_DIR/zlib.vcproj', |
87 '$TESTING_DIR/gtest.vcproj', | 108 '$CHROME_DIR/common/common.vcproj', |
88 '$LIBPNG_DIR/libpng.vcproj', | 109 '$ICU38_DIR/build/icu.vcproj', |
89 '$SKIA_DIR/skia.vcproj', | 110 '$BASE_DIR/build/base_gfx.vcproj', |
90 '$GOOGLEURL_DIR/build/googleurl.vcproj', | 111 '$TESTING_DIR/gtest.vcproj', |
91 '$CHROME_DIR/browser/views/browser_views.vcproj', | 112 '$LIBPNG_DIR/libpng.vcproj', |
92 ], | 113 '$SKIA_DIR/skia.vcproj', |
93 guid='{C9E0BD1D-B175-4A91-8380-3FDC81FAB9D7}') | 114 '$GOOGLEURL_DIR/build/googleurl.vcproj', |
| 115 '$CHROME_DIR/browser/views/browser_views.vcproj', |
| 116 ], |
| 117 # TODO(sgk): when we can intuit the hierarchy |
| 118 # from the built targets. |
| 119 #buildtargets=TODO, |
| 120 files=input_files, |
| 121 local_directory_prefix='./', |
| 122 tools=[ |
| 123 'VCPreBuildEventTool', |
| 124 'VCCustomBuildTool', |
| 125 'VCXMLDataGeneratorTool', |
| 126 'VCWebServiceProxyGeneratorTool', |
| 127 'VCMIDLTool', |
| 128 'VCCLCompilerTool', |
| 129 'VCManagedResourceCompilerTool', |
| 130 'VCResourceCompilerTool', |
| 131 'VCPreLinkEventTool', |
| 132 MSVSTool('VCLinkerTool', |
| 133 AdditionalDependencies='winmm.lib'), |
| 134 'VCALinkTool', |
| 135 'VCManifestTool', |
| 136 'VCXDCMakeTool', |
| 137 'VCBscMakeTool', |
| 138 'VCFxCopTool', |
| 139 'VCAppVerifierTool', |
| 140 'VCWebDeploymentTool', |
| 141 'VCPostBuildEventTool', |
| 142 ], |
| 143 ConfigurationType='1') |
| 144 |
| 145 |
| 146 p.AddConfig('Debug|Win32', |
| 147 InheritedPropertySheets=[ |
| 148 '$(SolutionDir)../build/common.vsprops', |
| 149 '$(SolutionDir)../build/debug.vsprops', |
| 150 '../../tools/build/win/precompiled_wtl.vsprops', |
| 151 '../../tools/build/win/unit_test.vsprops', |
| 152 '../../tools/build/win/ui_test.vsprops', |
| 153 '../../tools/build/win/test_memory_usage.vsprops', |
| 154 '$(SolutionDir)../skia/using_skia.vsprops', |
| 155 '$(SolutionDir)../testing/using_gtest.vsprops', |
| 156 ]) |
| 157 |
| 158 p.AddConfig('Release|Win32', |
| 159 InheritedPropertySheets=[ |
| 160 '$(SolutionDir)../build/common.vsprops', |
| 161 '$(SolutionDir)../build/release.vsprops', |
| 162 '../../tools/build/win/unit_test.vsprops', |
| 163 '../../tools/build/win/ui_test.vsprops', |
| 164 '../../tools/build/win/test_memory_usage.vsprops', |
| 165 '$(SolutionDir)../skia/using_skia.vsprops', |
| 166 '$(SolutionDir)../testing/using_gtest.vsprops', |
| 167 ]) |
| 168 |
| 169 p.AddFileConfig('../../tools/build/win/precompiled_wtl.cc', |
| 170 'Debug|Win32', |
| 171 tools=[ |
| 172 MSVSTool('VCCLCompilerTool', |
| 173 UsePrecompiledHeader='1'), |
| 174 ]) |
OLD | NEW |