Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: base/base_unittests.scons

Issue 7847: Using $CHROME_SRC_DIR in place of hash/..... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base_lib.scons ('k') | base/gfx/base_gfx.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.SConscript([
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 ], {'env':env})
22 22
23 if env['PLATFORM'] in ('posix', 'darwin'): 23 if env['PLATFORM'] in ('posix', 'darwin'):
24 env.SConscript([ 24 env.SConscript([
25 '$LIBEVENT_DIR/using_libevent.scons', 25 '$LIBEVENT_DIR/using_libevent.scons',
26 ], {'env':env}) 26 ], {'env':env})
27 27
28 env.Prepend( 28 env.Prepend(
29 CPPPATH = [ 29 CPPPATH = [
30 '$ROOT_DIR', 30 '$CHROME_SRC_DIR',
31 ], 31 ],
32 CPPDEFINES = [ 32 CPPDEFINES = [
33 'GOOGLE_CHROME_BUILD', 33 'GOOGLE_CHROME_BUILD',
34 ], 34 ],
35 ) 35 )
36 36
37 if env['PLATFORM'] == 'win32': 37 if env['PLATFORM'] == 'win32':
38 env.Prepend( 38 env.Prepend(
39 CCFLAGS = [ 39 CCFLAGS = [
40 '/TP', 40 '/TP',
(...skipping 15 matching lines...) Expand all
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 63 # Explicity list the functions we want to export from the base_unittest
64 # executable in the following file. 64 # executable in the following file.
65 env['EXPORTED_SYMBOLS_FILE'] = \ 65 env['EXPORTED_SYMBOLS_FILE'] = \
66 env.File('$ROOT_DIR/base/base_unittest_exported_symbols.version') 66 env.File('$CHROME_SRC_DIR/base/base_unittest_exported_symbols.version')
67 67
68 env.Append( 68 env.Append(
69 LIBS = [ 69 LIBS = [
70 'event', 70 'event',
71 ], 71 ],
72 LINKFLAGS = [ 72 LINKFLAGS = [
73 '-Xlinker', 73 '-Xlinker',
74 '--dynamic-list=$EXPORTED_SYMBOLS_FILE' 74 '--dynamic-list=$EXPORTED_SYMBOLS_FILE'
75 ], 75 ],
76 ) 76 )
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 env.Alias('base', installed_base_unittests) 191 env.Alias('base', installed_base_unittests)
192 192
193 # 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
194 # require updating a bunch of other SConscripts which link directly against 194 # require updating a bunch of other SConscripts which link directly against
195 # this generated object file. 195 # this generated object file.
196 env.StaticObject('perftimer.cc') 196 env.StaticObject('perftimer.cc')
197 197
198 # 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
199 env.StaticObject('run_all_perftests.cc') 199 env.StaticObject('run_all_perftests.cc')
OLDNEW
« no previous file with comments | « base/base_lib.scons ('k') | base/gfx/base_gfx.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698