| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 '/FIXED:No', | 53 '/FIXED:No', |
| 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 # Explicity list the functions we want to export from the base_unittest | |
| 64 # executable in the following file. | |
| 65 env['EXPORTED_SYMBOLS_FILE'] = \ | |
| 66 env.File('$CHROME_SRC_DIR/base/base_unittest_exported_symbols.version') | |
| 67 | |
| 68 env.Append( | 63 env.Append( |
| 69 LIBS = [ | 64 LIBS = [ |
| 70 'event', | 65 'event', |
| 71 ], | 66 ], |
| 72 LINKFLAGS = [ | |
| 73 '-Xlinker', | |
| 74 '--dynamic-list=$EXPORTED_SYMBOLS_FILE' | |
| 75 ], | |
| 76 ) | 67 ) |
| 77 | 68 |
| 78 # These test files work on *all* platforms; tests that don't work | 69 # These test files work on *all* platforms; tests that don't work |
| 79 # cross-platform live below. | 70 # cross-platform live below. |
| 80 input_files = [ | 71 input_files = [ |
| 81 'at_exit_unittest.cc', | 72 'at_exit_unittest.cc', |
| 82 'atomicops_unittest.cc', | 73 'atomicops_unittest.cc', |
| 83 'clipboard_unittest.cc', | 74 'clipboard_unittest.cc', |
| 84 'command_line_unittest.cc', | 75 'command_line_unittest.cc', |
| 85 'condition_variable_unittest.cc', | 76 'condition_variable_unittest.cc', |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 182 |
| 192 env.Alias('base', installed_base_unittests) | 183 env.Alias('base', installed_base_unittests) |
| 193 | 184 |
| 194 # TODO(sgk) should this be moved into base.lib like everything else? This will | 185 # TODO(sgk) should this be moved into base.lib like everything else? This will |
| 195 # require updating a bunch of other SConscripts which link directly against | 186 # require updating a bunch of other SConscripts which link directly against |
| 196 # this generated object file. | 187 # this generated object file. |
| 197 env.StaticObject('perftimer.cc') | 188 env.StaticObject('perftimer.cc') |
| 198 | 189 |
| 199 # Since run_all_perftests supplies a main, we cannot have it in base.lib | 190 # Since run_all_perftests supplies a main, we cannot have it in base.lib |
| 200 env.StaticObject('run_all_perftests.cc') | 191 env.StaticObject('run_all_perftests.cc') |
| OLD | NEW |