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 |
11 env = env.Clone() | 11 env = env.Clone() |
12 | 12 |
13 env.ApplySConscript([ | 13 env.ApplySConscript([ |
14 '$BASE_DIR/using_base.scons', | 14 '$BASE_DIR/using_base.scons', |
15 '$BASE_DIR/gfx/using_base_gfx.scons', | 15 '$BASE_DIR/gfx/using_base_gfx.scons', |
16 '$GTEST_DIR/../using_gtest.scons', | 16 '$GTEST_DIR/../using_gtest.scons', |
17 '$ICU38_DIR/using_icu38.scons', | 17 '$ICU38_DIR/using_icu38.scons', |
18 '$LIBPNG_DIR/using_libpng.scons', | 18 '$LIBPNG_DIR/using_libpng.scons', |
19 '$SKIA_DIR/using_skia.scons', | 19 '$SKIA_DIR/using_skia.scons', |
20 '$ZLIB_DIR/using_zlib.scons', | 20 '$ZLIB_DIR/using_zlib.scons', |
21 ]) | 21 ]) |
22 | 22 |
23 if env['PLATFORM'] in ('posix', 'darwin'): | 23 if env['PLATFORM'] in ('posix', 'darwin'): |
24 env.ApplySConscript([ | 24 env.ApplySConscript([ |
25 '$LIBEVENT_DIR/using_libevent.scons', | 25 '$LIBEVENT_DIR/using_libevent.scons', |
26 ]) | 26 ]) |
27 | 27 |
28 env.Prepend( | |
29 CPPDEFINES = [ | |
30 'GOOGLE_CHROME_BUILD', | |
31 ], | |
32 ) | |
33 | |
34 if env['PLATFORM'] == 'win32': | 28 if env['PLATFORM'] == 'win32': |
35 env.Prepend( | 29 env.Prepend( |
36 CCFLAGS = [ | 30 CCFLAGS = [ |
37 '/TP', | 31 '/TP', |
38 '/WX', | 32 '/WX', |
39 ], | 33 ], |
40 ) | 34 ) |
41 | 35 |
42 if env['PLATFORM'] == 'posix': | 36 if env['PLATFORM'] == 'posix': |
43 env.Append( | 37 env.Append( |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 145 |
152 env.ChromeTestProgram('base_unittests', input_files) | 146 env.ChromeTestProgram('base_unittests', input_files) |
153 | 147 |
154 # TODO(sgk) should this be moved into base.lib like everything else? This will | 148 # TODO(sgk) should this be moved into base.lib like everything else? This will |
155 # require updating a bunch of other SConscripts which link directly against | 149 # require updating a bunch of other SConscripts which link directly against |
156 # this generated object file. | 150 # this generated object file. |
157 env.StaticObject('perftimer.cc') | 151 env.StaticObject('perftimer.cc') |
158 | 152 |
159 # Since run_all_perftests supplies a main, we cannot have it in base.lib | 153 # Since run_all_perftests supplies a main, we cannot have it in base.lib |
160 env.StaticObject('run_all_perftests.cc') | 154 env.StaticObject('run_all_perftests.cc') |
OLD | NEW |