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