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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 '/safeseh', | 55 '/safeseh', |
56 '/dynamicbase', | 56 '/dynamicbase', |
57 '/ignore:4199', | 57 '/ignore:4199', |
58 '/nxcompat', | 58 '/nxcompat', |
59 ], | 59 ], |
60 ) | 60 ) |
61 | 61 |
62 if env['PLATFORM'] == 'posix': | 62 if env['PLATFORM'] == 'posix': |
63 env.Append( | 63 env.Append( |
| 64 # We need 'Xss' (X Screen Saver) in LIBS if we want idletimer_unittest |
64 LIBS = [ | 65 LIBS = [ |
65 'event', | 66 'event', |
66 ], | 67 ], |
67 ) | 68 ) |
68 | 69 |
69 # These test files work on *all* platforms; tests that don't work | 70 # These test files work on *all* platforms; tests that don't work |
70 # cross-platform live below. | 71 # cross-platform live below. |
71 input_files = [ | 72 input_files = [ |
72 'at_exit_unittest.cc', | 73 'at_exit_unittest.cc', |
73 'atomicops_unittest.cc', | 74 'atomicops_unittest.cc', |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 'gfx/uniscribe_unittest.cc', | 127 'gfx/uniscribe_unittest.cc', |
127 'gfx/vector_canvas_unittest.cc', | 128 'gfx/vector_canvas_unittest.cc', |
128 ] | 129 ] |
129 | 130 |
130 if env['PLATFORM'] in ('posix', 'darwin'): | 131 if env['PLATFORM'] in ('posix', 'darwin'): |
131 #env.ChromeTestProgram('debug_message', ['debug_message.cc']) | 132 #env.ChromeTestProgram('debug_message', ['debug_message.cc']) |
132 | 133 |
133 # Remove files that still need to be ported from the input_files list. | 134 # Remove files that still need to be ported from the input_files list. |
134 # TODO(port): delete files from this list as they get ported. | 135 # TODO(port): delete files from this list as they get ported. |
135 to_be_ported_files = [ | 136 to_be_ported_files = [ |
| 137 # We have an implementation of idle_timer, but it's unclear if we want it |
| 138 # yet, so it's commented out for now. Leave this 'unported'. |
136 'idletimer_unittest.cc', | 139 'idletimer_unittest.cc', |
| 140 |
137 'watchdog_unittest.cc', | 141 'watchdog_unittest.cc', |
138 'gfx/native_theme_unittest.cc', | 142 'gfx/native_theme_unittest.cc', |
139 'gfx/uniscribe_unittest.cc', | 143 'gfx/uniscribe_unittest.cc', |
140 'gfx/vector_canvas_unittest.cc', | 144 'gfx/vector_canvas_unittest.cc', |
141 ] | 145 ] |
142 for remove in to_be_ported_files: | 146 for remove in to_be_ported_files: |
143 input_files.remove(remove) | 147 input_files.remove(remove) |
144 | 148 |
145 if env['PLATFORM'] == 'darwin': | 149 if env['PLATFORM'] == 'darwin': |
146 # Remove files that still need to be ported from the input_files list. | 150 # Remove files that still need to be ported from the input_files list. |
(...skipping 27 matching lines...) Expand all Loading... |
174 | 178 |
175 env.ChromeTestProgram('base_unittests', input_files) | 179 env.ChromeTestProgram('base_unittests', input_files) |
176 | 180 |
177 # TODO(sgk) should this be moved into base.lib like everything else? This will | 181 # TODO(sgk) should this be moved into base.lib like everything else? This will |
178 # require updating a bunch of other SConscripts which link directly against | 182 # require updating a bunch of other SConscripts which link directly against |
179 # this generated object file. | 183 # this generated object file. |
180 env.StaticObject('perftimer.cc') | 184 env.StaticObject('perftimer.cc') |
181 | 185 |
182 # Since run_all_perftests supplies a main, we cannot have it in base.lib | 186 # Since run_all_perftests supplies a main, we cannot have it in base.lib |
183 env.StaticObject('run_all_perftests.cc') | 187 env.StaticObject('run_all_perftests.cc') |
OLD | NEW |