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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 ]) | 175 ]) |
176 | 176 |
177 if env['PLATFORM'] == 'darwin': | 177 if env['PLATFORM'] == 'darwin': |
178 # Mac-specific tests. | 178 # Mac-specific tests. |
179 input_files.extend([ | 179 input_files.extend([ |
180 'platform_test_mac.mm', | 180 'platform_test_mac.mm', |
181 ]) | 181 ]) |
182 | 182 |
183 base_unittests = env.ChromeTestProgram('base_unittests', input_files) | 183 base_unittests = env.ChromeTestProgram('base_unittests', input_files) |
184 | 184 |
185 env.Depends(base_unittests, '$EXPORTED_SYMBOLS_FILE') | 185 if env['PLATFORM'] == 'posix': |
| 186 env.Depends(base_unittests, '$EXPORTED_SYMBOLS_FILE') |
186 | 187 |
187 # Install up a level to allow unit test path assumptions to be valid. | 188 # Install up a level to allow unit test path assumptions to be valid. |
188 installed_base_unittests = env.Install('$TARGET_ROOT', base_unittests) | 189 installed_base_unittests = env.Install('$TARGET_ROOT', base_unittests) |
189 | 190 |
190 env.Alias('base', installed_base_unittests) | 191 env.Alias('base', installed_base_unittests) |
191 | 192 |
192 # TODO(sgk) should this be moved into base.lib like everything else? This will | 193 # TODO(sgk) should this be moved into base.lib like everything else? This will |
193 # require updating a bunch of other SConscripts which link directly against | 194 # require updating a bunch of other SConscripts which link directly against |
194 # this generated object file. | 195 # this generated object file. |
195 env.StaticObject('perftimer.cc') | 196 env.StaticObject('perftimer.cc') |
196 | 197 |
197 # Since run_all_perftests supplies a main, we cannot have it in base.lib | 198 # Since run_all_perftests supplies a main, we cannot have it in base.lib |
198 env.StaticObject('run_all_perftests.cc') | 199 env.StaticObject('run_all_perftests.cc') |
OLD | NEW |