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.SConscript([ | 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 ], {'env':env}) | 21 ]) |
22 | 22 |
23 if env['PLATFORM'] in ('posix', 'darwin'): | 23 if env['PLATFORM'] in ('posix', 'darwin'): |
24 env.SConscript([ | 24 env.ApplySConscript([ |
25 '$LIBEVENT_DIR/using_libevent.scons', | 25 '$LIBEVENT_DIR/using_libevent.scons', |
26 ], {'env':env}) | 26 ]) |
27 | 27 |
28 env.Prepend( | 28 env.Prepend( |
29 CPPPATH = [ | |
30 '$CHROME_SRC_DIR', | |
31 ], | |
32 CPPDEFINES = [ | 29 CPPDEFINES = [ |
33 'GOOGLE_CHROME_BUILD', | 30 'GOOGLE_CHROME_BUILD', |
34 ], | 31 ], |
35 ) | 32 ) |
36 | 33 |
37 if env['PLATFORM'] == 'win32': | 34 if env['PLATFORM'] == 'win32': |
38 env.Prepend( | 35 env.Prepend( |
39 CCFLAGS = [ | 36 CCFLAGS = [ |
40 '/TP', | 37 '/TP', |
41 '/WX', | 38 '/WX', |
42 ], | 39 ], |
43 CPPDEFINES = [ | |
44 '_WIN32_WINNT=0x0600', | |
45 'WINVER=0x0600', | |
46 '_HAS_EXCEPTIONS=0', | |
47 ], | |
48 LINKFLAGS = [ | |
49 '/MANIFEST', | |
50 '/DELAYLOAD:"dwmapi.dll"', | |
51 '/DELAYLOAD:"uxtheme.dll"', | |
52 '/MACHINE:X86', | |
53 '/FIXED:No', | |
54 | |
55 '/safeseh', | |
56 '/dynamicbase', | |
57 '/ignore:4199', | |
58 '/nxcompat', | |
59 ], | |
60 ) | 40 ) |
61 | 41 |
62 if env['PLATFORM'] == 'posix': | 42 if env['PLATFORM'] == 'posix': |
63 env.Append( | 43 env.Append( |
64 # 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 |
65 LIBS = [ | 45 LIBS = [ |
66 'event', | 46 'event', |
67 ], | 47 ], |
68 ) | 48 ) |
69 | 49 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 156 |
177 env.ChromeTestProgram('base_unittests', input_files) | 157 env.ChromeTestProgram('base_unittests', input_files) |
178 | 158 |
179 # TODO(sgk) should this be moved into base.lib like everything else? This will | 159 # TODO(sgk) should this be moved into base.lib like everything else? This will |
180 # require updating a bunch of other SConscripts which link directly against | 160 # require updating a bunch of other SConscripts which link directly against |
181 # this generated object file. | 161 # this generated object file. |
182 env.StaticObject('perftimer.cc') | 162 env.StaticObject('perftimer.cc') |
183 | 163 |
184 # Since run_all_perftests supplies a main, we cannot have it in base.lib | 164 # Since run_all_perftests supplies a main, we cannot have it in base.lib |
185 env.StaticObject('run_all_perftests.cc') | 165 env.StaticObject('run_all_perftests.cc') |
OLD | NEW |