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 '$LIBXML_DIR/using_libxml.scons', | |
17 '$LIBXSLT_DIR/using_libxslt.scons', | |
18 '$MODP_B64_DIR/using_modp_b64.scons', | |
19 '$NET_DIR/using_net.scons', | |
20 '$SKIA_DIR/using_skia.scons', | |
21 '$ZLIB_DIR/using_zlib.scons', | |
22 ]) | |
23 | |
24 env.Prepend( | |
25 CPPDEFINES = [ | |
26 'UI_TEST', | |
27 ], | |
28 CPPPATH = [ | |
29 '$CHROME_SRC_DIR', | |
30 ], | |
31 LIBS = [ | |
32 'automation', | |
33 'browser', | |
34 'browser_views', | |
35 'common', | |
36 'security_tests', | |
37 ], | |
38 ) | |
39 | |
40 if env.Bit('windows'): | |
41 env.Prepend( | |
42 LINKFLAGS = [ | |
43 '/INCREMENTAL', | |
44 '/DEBUG', | |
45 | |
46 '/DELAYLOAD:"ws2_32.dll"', | |
47 '/DELAYLOAD:"dwmapi.dll"', | |
48 '/DELAYLOAD:"uxtheme.dll"', | |
49 | |
50 '/MACHINE:X86', | |
51 '/FIXED:No', | |
52 | |
53 '/safeseh', | |
54 '/dynamicbase', | |
55 '/ignore:4199', | |
56 '/nxcompat', | |
57 ], | |
58 LIBS = [ | |
59 'comsupp', | |
60 'oleacc', | |
61 'rpcrt4', | |
62 'winmm', | |
63 ], | |
64 ) | |
65 | |
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', | |
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 | |
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 ) | |
83 | |
84 # TODO(port): | |
85 if env.Bit('windows'): | |
86 env.ChromeTestProgram('plugin_tests', input_files) | |
87 | |
88 p = env.ChromeMSVSProject('plugin_tests.vcproj', | |
89 dest=('$CHROME_SRC_DIR/chrome/' | |
90 + 'test/plugin/plugin_tests.vcproj'), | |
91 guid='{A1CAA831-C507-4B2E-87F3-AEC63C9907F9}', | |
92 dependencies = [ | |
93 '$CHROME_DIR/test/automation/automation.vcproj', | |
94 '$BASE_DIR/build/base.vcproj', | |
95 '$NET_DIR/build/net.vcproj', | |
96 ('$CHROME_DIR/test/activex_test_control/' + | |
97 'activex_test_control.vcproj'), | |
98 '$CHROME_DIR/browser/browser.vcproj', | |
99 '$MODP_B64_DIR/modp_b64.vcproj', | |
100 '$CHROME_DIR/app/chrome_exe.vcproj', | |
101 '$ZLIB_DIR/zlib.vcproj', | |
102 '$CHROME_DIR/common/common.vcproj', | |
103 '$ICU38_DIR/build/icu.vcproj', | |
104 '$BASE_DIR/build/base_gfx.vcproj', | |
105 '$TESTING_DIR/gtest.vcproj', | |
106 '$LIBPNG_DIR/libpng.vcproj', | |
107 '$SKIA_DIR/skia.vcproj', | |
108 ('$CHROME_DIR/test/security_tests/' + | |
109 'security_tests.vcproj'), | |
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 |