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 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building base_unittests{,.exe}. | 6 Configuration for building base_unittests{,.exe}. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... | |
40 ) | 40 ) |
41 | 41 |
42 if env['PLATFORM'] == 'posix': | 42 if env['PLATFORM'] == 'posix': |
43 env.Append( | 43 env.Append( |
44 # We need 'Xss' (X Screen Saver) in LIBS if we want idletimer_unittest | 44 # We need 'Xss' (X Screen Saver) in LIBS if we want idletimer_unittest |
45 LIBS = [ | 45 LIBS = [ |
46 'event', | 46 'event', |
47 ], | 47 ], |
48 ) | 48 ) |
49 | 49 |
50 # These test files work on *all* platforms; tests that don't work | 50 # These test files work on *all* platforms; tests that don't work |
wtc
2008/11/25 23:00:13
Should we also update this comment as we updated t
| |
51 # cross-platform live below. | 51 # cross-platform live below. |
52 input_files = [ | 52 input_files = [ |
53 'at_exit_unittest.cc', | 53 'at_exit_unittest.cc', |
54 'atomicops_unittest.cc', | 54 'atomicops_unittest.cc', |
55 'clipboard_unittest.cc', | 55 'clipboard_unittest.cc', |
56 'command_line_unittest.cc', | 56 'command_line_unittest.cc', |
57 'condition_variable_unittest.cc', | 57 'condition_variable_unittest.cc', |
58 'field_trial_unittest.cc', | 58 'field_trial_unittest.cc', |
59 'file_path_unittest.cc', | 59 'file_path_unittest.cc', |
60 'file_util_unittest.cc', | 60 'file_util_unittest.cc', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 ] | 107 ] |
108 | 108 |
109 if env['PLATFORM'] in ('posix', 'darwin'): | 109 if env['PLATFORM'] in ('posix', 'darwin'): |
110 # Remove files that still need to be ported from the input_files list. | 110 # Remove files that still need to be ported from the input_files list. |
111 # TODO(port): delete files from this list as they get ported. | 111 # TODO(port): delete files from this list as they get ported. |
112 to_be_ported_files = [ | 112 to_be_ported_files = [ |
113 # We have an implementation of idle_timer, but it's unclear if we want it | 113 # We have an implementation of idle_timer, but it's unclear if we want it |
114 # yet, so it's commented out for now. Leave this 'unported'. | 114 # yet, so it's commented out for now. Leave this 'unported'. |
115 'idletimer_unittest.cc', | 115 'idletimer_unittest.cc', |
116 | 116 |
117 'watchdog_unittest.cc', | |
118 'gfx/native_theme_unittest.cc', | 117 'gfx/native_theme_unittest.cc', |
119 ] | 118 ] |
120 for remove in to_be_ported_files: | 119 for remove in to_be_ported_files: |
121 input_files.remove(remove) | 120 input_files.remove(remove) |
122 | 121 |
123 if env['PLATFORM'] == 'darwin': | 122 if env['PLATFORM'] == 'darwin': |
124 # Remove files that still need to be ported from the input_files list. | 123 # Remove files that still need to be ported from the input_files list. |
125 # TODO(port): delete files from this list as they get ported. | 124 # TODO(port): delete files from this list as they get ported. |
126 to_be_ported_files = [ | 125 to_be_ported_files = [ |
127 'process_util_unittest.cc', | 126 'process_util_unittest.cc', |
(...skipping 24 matching lines...) Expand all Loading... | |
152 | 151 |
153 env.ChromeTestProgram('base_unittests', input_files) | 152 env.ChromeTestProgram('base_unittests', input_files) |
154 | 153 |
155 # TODO(sgk) should this be moved into base.lib like everything else? This will | 154 # TODO(sgk) should this be moved into base.lib like everything else? This will |
156 # require updating a bunch of other SConscripts which link directly against | 155 # require updating a bunch of other SConscripts which link directly against |
157 # this generated object file. | 156 # this generated object file. |
158 env.StaticObject('perftimer.cc') | 157 env.StaticObject('perftimer.cc') |
159 | 158 |
160 # Since run_all_perftests supplies a main, we cannot have it in base.lib | 159 # Since run_all_perftests supplies a main, we cannot have it in base.lib |
161 env.StaticObject('run_all_perftests.cc') | 160 env.StaticObject('run_all_perftests.cc') |
OLD | NEW |