| 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.ApplySConscript([ | |
| 10 '$BASE_DIR/using_base.scons', | |
| 11 '$BASE_DIR/gfx/using_base_gfx.scons', | |
| 12 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
| 13 '$GTEST_DIR/../using_gtest.scons', | |
| 14 '$ICU38_DIR/using_icu38.scons', | |
| 15 '$LIBPNG_DIR/using_libpng.scons', | |
| 16 '$MODP_B64_DIR/using_modp_b64.scons', | |
| 17 '$NET_DIR/using_net.scons', | |
| 18 '$SKIA_DIR/using_skia.scons', | |
| 19 '$ZLIB_DIR/using_zlib.scons', | |
| 20 ]) | |
| 21 | |
| 22 env.Prepend( | |
| 23 CPPDEFINES = [ | |
| 24 'UI_TEST', | |
| 25 ], | |
| 26 CPPPATH = [ | |
| 27 '$CHROME_SRC_DIR', | |
| 28 ], | |
| 29 LIBS = [ | |
| 30 'automation', | |
| 31 'browser', | |
| 32 'browser_views', | |
| 33 'common', | |
| 34 ], | |
| 35 ) | |
| 36 | |
| 37 if env.Bit('windows'): | |
| 38 env.Prepend( | |
| 39 LINKFLAGS = [ | |
| 40 '/INCREMENTAL', | |
| 41 '/DEBUG', | |
| 42 | |
| 43 '/DELAYLOAD:"dwmapi.dll"', | |
| 44 '/DELAYLOAD:"uxtheme.dll"', | |
| 45 | |
| 46 '/MACHINE:X86', | |
| 47 '/FIXED:No', | |
| 48 | |
| 49 '/safeseh', | |
| 50 '/dynamicbase', | |
| 51 '/ignore:4199', | |
| 52 '/nxcompat', | |
| 53 ], | |
| 54 LIBS = [ | |
| 55 'comsupp', | |
| 56 'oleacc', | |
| 57 'psapi', | |
| 58 'rpcrt4', | |
| 59 'winmm', | |
| 60 ], | |
| 61 ) | |
| 62 | |
| 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('TabSwitchingTest', [ | |
| 77 'tab_switching_test.cc', | |
| 78 ]), | |
| 79 ]) | |
| 80 | |
| 81 if not env.Bit('windows'): | |
| 82 # Windows-specific. | |
| 83 input_files.Remove( | |
| 84 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
| 85 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
| 86 ) | |
| 87 | |
| 88 # TODO(port): | |
| 89 if env.Bit('windows'): | |
| 90 env.ChromeTestProgram('tab_switching_test', input_files) | |
| 91 | |
| 92 p = env.ChromeMSVSProject('tab_switching.vcproj', | |
| 93 name='tab_switching_test', | |
| 94 dest=('$CHROME_SRC_DIR/chrome/' | |
| 95 + 'test/tab_switching/tab_switching.vcproj'), | |
| 96 guid='{A34770EA-A574-43E8-9327-F79C04770E98}', | |
| 97 dependencies = [ | |
| 98 '$CHROME_DIR/test/automation/automation.vcproj', | |
| 99 '$BASE_DIR/build/base.vcproj', | |
| 100 '$NET_DIR/build/net.vcproj', | |
| 101 '$CHROME_DIR/browser/browser.vcproj', | |
| 102 '$MODP_B64_DIR/modp_b64.vcproj', | |
| 103 '$CHROME_DIR/test/ui/ui_tests.vcproj', | |
| 104 '$CHROME_DIR/app/chrome_exe.vcproj', | |
| 105 '$ZLIB_DIR/zlib.vcproj', | |
| 106 '$CHROME_DIR/common/common.vcproj', | |
| 107 '$ICU38_DIR/build/icu.vcproj', | |
| 108 '$BASE_DIR/build/base_gfx.vcproj', | |
| 109 '$TESTING_DIR/gtest.vcproj', | |
| 110 '$LIBPNG_DIR/libpng.vcproj', | |
| 111 '$SKIA_DIR/skia.vcproj', | |
| 112 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
| 113 '$CHROME_DIR/browser/views/browser_views.vcproj', | |
| 114 ], | |
| 115 # TODO(sgk): when we can intuit the hierarchy | |
| 116 # from the built targets. | |
| 117 #buildtargets=TODO, | |
| 118 files=input_files, | |
| 119 local_directory_prefix='./', | |
| 120 tools=[ | |
| 121 'VCPreBuildEventTool', | |
| 122 'VCCustomBuildTool', | |
| 123 'VCXMLDataGeneratorTool', | |
| 124 'VCWebServiceProxyGeneratorTool', | |
| 125 'VCMIDLTool', | |
| 126 'VCCLCompilerTool', | |
| 127 'VCManagedResourceCompilerTool', | |
| 128 'VCResourceCompilerTool', | |
| 129 'VCPreLinkEventTool', | |
| 130 MSVSTool('VCLinkerTool', | |
| 131 AdditionalDependencies='winmm.lib'), | |
| 132 'VCALinkTool', | |
| 133 'VCManifestTool', | |
| 134 'VCXDCMakeTool', | |
| 135 'VCBscMakeTool', | |
| 136 'VCFxCopTool', | |
| 137 'VCAppVerifierTool', | |
| 138 'VCWebDeploymentTool', | |
| 139 'VCPostBuildEventTool', | |
| 140 ], | |
| 141 ConfigurationType='1') | |
| 142 | |
| 143 | |
| 144 p.AddConfig('Debug|Win32', | |
| 145 InheritedPropertySheets=[ | |
| 146 '$(SolutionDir)../build/common.vsprops', | |
| 147 '$(SolutionDir)../build/debug.vsprops', | |
| 148 '../../tools/build/win/precompiled_wtl.vsprops', | |
| 149 '../../tools/build/win/unit_test.vsprops', | |
| 150 '../../tools/build/win/ui_test.vsprops', | |
| 151 '../../tools/build/win/test_memory_usage.vsprops', | |
| 152 '$(SolutionDir)../skia/using_skia.vsprops', | |
| 153 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 154 ]) | |
| 155 | |
| 156 p.AddConfig('Release|Win32', | |
| 157 InheritedPropertySheets=[ | |
| 158 '$(SolutionDir)../build/common.vsprops', | |
| 159 '$(SolutionDir)../build/release.vsprops', | |
| 160 '../../tools/build/win/unit_test.vsprops', | |
| 161 '../../tools/build/win/ui_test.vsprops', | |
| 162 '../../tools/build/win/test_memory_usage.vsprops', | |
| 163 '$(SolutionDir)../skia/using_skia.vsprops', | |
| 164 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 165 ]) | |
| 166 | |
| 167 p.AddFileConfig('../../tools/build/win/precompiled_wtl.cc', | |
| 168 'Debug|Win32', | |
| 169 tools=[ | |
| 170 MSVSTool('VCCLCompilerTool', | |
| 171 UsePrecompiledHeader='1'), | |
| 172 ]) | |
| OLD | NEW |