Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: base/base_unittests.scons

Issue 53121: Remove the checked-in scons configuration files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base_sln.scons ('k') | base/debug_message.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 __doc__ = """
6 Configuration for building base_unittests{,.exe}.
7 """
8
9 Import('env')
10
11 env = env.Clone()
12
13 env.ApplySConscript([
14 '$BASE_DIR/using_base.scons',
15 '$BASE_DIR/gfx/using_base_gfx.scons',
16 '$GTEST_DIR/../using_gtest.scons',
17 '$ICU38_DIR/using_icu38.scons',
18 '$LIBJPEG_DIR/using_libjpeg.scons',
19 '$LIBPNG_DIR/using_libpng.scons',
20 '$SKIA_DIR/using_skia.scons',
21 '$ZLIB_DIR/using_zlib.scons',
22 ])
23
24 if env.Bit('posix'):
25 env.ApplySConscript([
26 '$LIBEVENT_DIR/using_libevent.scons',
27 ])
28
29 if env.Bit('windows'):
30 env.Prepend(
31 CCFLAGS = [
32 '/TP',
33 '/WX',
34 ],
35 )
36
37 if env.Bit('linux'):
38 env.Append(
39 # We need 'Xss' (X Screen Saver) in LIBS if we want idletimer_unittest
40 LIBS = [
41 'event',
42 ],
43 )
44
45 input_files = ChromeFileList([
46 # TODO(sgk):
47 # We're deliberately mis-indenting the MSVSFilter() calls here
48 # so we don't have to re-indent the file name entries when the
49 # MSVSFilter() calls go away in (favor of automated generation
50 # of the heirarchy).
51 MSVSFilter('support', [
52 'multiprocess_test.h',
53 'no_windows2000_unittest.h',
54 'perf_test_suite.h',
55 'run_all_unittests.cc',
56 'test_suite.h',
57 ]),
58
59 MSVSFilter('base_tests', [
60 'at_exit_unittest.cc',
61 'atomicops_unittest.cc',
62 'clipboard_unittest.cc',
63 'command_line_unittest.cc',
64 'condition_variable_unittest.cc',
65 'directory_watcher_unittest.cc',
66 'field_trial_unittest.cc',
67 'file_path_unittest.cc',
68 'file_util_unittest.cc',
69 'file_version_info_unittest.cc',
70 'histogram_unittest.cc',
71 'hmac_unittest.cc',
72 'idletimer_unittest.cc',
73 'json_reader_unittest.cc',
74 'json_writer_unittest.cc',
75 'lazy_instance_unittest.cc',
76 'linked_ptr_unittest.cc',
77 'message_loop_unittest.cc',
78 'gfx/native_theme_unittest.cc',
79 'object_watcher_unittest.cc',
80 'observer_list_unittest.cc',
81 'path_service_unittest.cc',
82 'pe_image_unittest.cc',
83 'pickle_unittest.cc',
84 'pr_time_unittest.cc',
85 'process_util_unittest.cc',
86 'rand_util_unittest.cc',
87 'gfx/rect_unittest.cc',
88 'ref_counted_unittest.cc',
89 'scoped_bstr_win_unittest.cc',
90 'scoped_comptr_win_unittest.cc',
91 'scoped_ptr_unittest.cc',
92 'sha2_unittest.cc',
93 'shared_memory_unittest.cc',
94 'simple_thread_unittest.cc',
95 'singleton_unittest.cc',
96 'stack_container_unittest.cc',
97 'stats_table_unittest.cc',
98 'string_escape_unittest.cc',
99 'string_piece_unittest.cc',
100 'string_tokenizer_unittest.cc',
101 'string_util_unittest.cc',
102 'sys_info_unittest.cc',
103 'sys_string_conversions_unittest.cc',
104 'system_monitor_unittest.cc',
105 'thread_collision_warner_unittest.cc',
106 'thread_local_storage_unittest.cc',
107 'thread_local_unittest.cc',
108 'thread_unittest.cc',
109 'time_unittest.cc',
110 'time_win_unittest.cc',
111 'timer_unittest.cc',
112 'tracked_objects_unittest.cc',
113 'tuple_unittest.cc',
114 'values_unittest.cc',
115 'version_unittest.cc',
116 'waitable_event_unittest.cc',
117 'waitable_event_watcher_unittest.cc',
118 'watchdog_unittest.cc',
119 'win_util_unittest.cc',
120 'wmi_util_unittest.cc',
121 'word_iterator_unittest.cc',
122 'worker_pool_unittest.cc'
123 ]),
124
125 MSVSFilter('gfx_tests', [
126 'gfx/jpeg_codec_unittest.cc',
127 'gfx/png_codec_unittest.cc',
128 ]),
129 ])
130
131 if env.Bit('posix'):
132 # Remove files that still need to be ported from the input_files list.
133 # TODO(port): delete files from this list as they get ported.
134 input_files.Remove(
135 # We have an implementation of idle_timer, but it's unclear if we want it
136 # yet, so it's commented out for now. Leave this 'unported'.
137 'idletimer_unittest.cc',
138
139 'gfx/native_theme_unittest.cc',
140 )
141
142 if env.Bit('linux'):
143 input_files.Append(
144 'data_pack_unittest.cc',
145 'worker_pool_linux_unittest.cc'
146 )
147
148 if env.Bit('mac'):
149 # Remove files that still need to be ported from the input_files list.
150 # TODO(port): delete files from this list as they get ported.
151 input_files.Remove(
152 'process_util_unittest.cc',
153 'stats_table_unittest.cc',
154 )
155
156
157 if not env.Bit('windows'):
158 # Remove Windows-specific tests.
159 input_files.Remove(
160 'file_version_info_unittest.cc',
161 'object_watcher_unittest.cc',
162 'pe_image_unittest.cc',
163 'scoped_bstr_win_unittest.cc',
164 'scoped_comptr_win_unittest.cc',
165 'system_monitor_unittest.cc',
166 'time_win_unittest.cc',
167 'win_util_unittest.cc',
168 'wmi_util_unittest.cc',
169 )
170
171 if env.Bit('mac'):
172 # Mac-specific tests.
173 input_files.Extend([
174 'mac_util_unittest.cc',
175 ])
176
177 env.ChromeTestProgram('base_unittests', input_files)
178
179 p = env.ChromeMSVSProject('build/base_unittests.vcproj',
180 dest='$CHROME_SRC_DIR/base/build/base_unittests.vcproj ',
181 guid='{27A30967-4BBA-48D1-8522-CDE95F7B1CEC}',
182 dependencies=[
183 '$BASE_DIR/build/base.vcproj',
184 '$ZLIB_DIR/zlib.vcproj',
185 '$ICU38_DIR/build/icu.vcproj',
186 '$BASE_DIR/build/base_gfx.vcproj',
187 '$TESTING_DIR/gtest.vcproj',
188 '$LIBPNG_DIR/libpng.vcproj',
189 '$SKIA_DIR/skia.vcproj',
190 ],
191 files=input_files,
192 tools = [
193 'VCPreBuildEventTool',
194 'VCCustomBuildTool',
195 'VCXMLDataGeneratorTool',
196 'VCWebServiceProxyGeneratorTool',
197 'VCMIDLTool',
198 MSVSTool('VCCLCompilerTool',
199 PreprocessorDefinitions='UNIT_TEST'),
200 'VCManagedResourceCompilerTool',
201 'VCResourceCompilerTool',
202 'VCPreLinkEventTool',
203 'VCLinkerTool',
204 'VCALinkTool',
205 'VCManifestTool',
206 'VCXDCMakeTool',
207 'VCBscMakeTool',
208 'VCFxCopTool',
209 'VCAppVerifierTool',
210 'VCWebDeploymentTool',
211 'VCPostBuildEventTool',
212 ])
213
214 p.AddConfig('Debug|Win32',
215 ConfigurationType = '1',
216 InheritedPropertySheets = [
217 '$(SolutionDir)../build/debug.vsprops',
218 './base_unittests.vsprops',
219 '$(SolutionDir)../testing/using_gtest.vsprops',
220 ])
221
222 p.AddConfig('Release|Win32',
223 ConfigurationType = '1',
224 InheritedPropertySheets = [
225 '$(SolutionDir)../build/release.vsprops',
226 './base_unittests.vsprops',
227 '$(SolutionDir)../testing/using_gtest.vsprops',
228 ])
229
230 # TODO(sgk) should this be moved into base.lib like everything else? This will
231 # require updating a bunch of other SConscripts which link directly against
232 # this generated object file.
233 env.StaticObject('perftimer.cc')
234
235 # Since run_all_perftests supplies a main, we cannot have it in base.lib
236 env.StaticObject('run_all_perftests.cc')
OLDNEW
« no previous file with comments | « base/base_sln.scons ('k') | base/debug_message.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698