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

Side by Side Diff: net/net_perftests.scons

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « net/net_lib.scons ('k') | net/net_unittests.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 the net_perftests{,.exe} executable. 6 Configuration for building the net_perftests{,.exe} executable.
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 '$CHROME_SRC_DIR/build/using_googleurl.scons', 15 '$CHROME_SRC_DIR/build/using_googleurl.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 '$MODP_B64_DIR/using_modp_b64.scons', 18 '$MODP_B64_DIR/using_modp_b64.scons',
19 '$NET_DIR/using_net.scons', 19 '$NET_DIR/using_net.scons',
20 ]) 20 ])
21 21
22 if env['PLATFORM'] in ('posix', 'darwin'): 22 if env.Bit('posix'):
23 env.SConscript([ 23 env.SConscript([
24 '$LIBEVENT_DIR/using_libevent.scons', 24 '$LIBEVENT_DIR/using_libevent.scons',
25 ], {'env':env}) 25 ], {'env':env})
26 26
27 if env['PLATFORM'] == 'win32': 27 if env.Bit('windows'):
28 env.Prepend( 28 env.Prepend(
29 CCFLAGS = [ 29 CCFLAGS = [
30 '/WX', 30 '/WX',
31 ], 31 ],
32 ) 32 )
33 elif env['PLATFORM'] == 'posix': 33 elif env.Bit('linux'):
34 env.Append( 34 env.Append(
35 # TODO(port): disk_cache_perftest breaks strict aliasing rules. 35 # TODO(port): disk_cache_perftest breaks strict aliasing rules.
36 CCFLAGS = ['-fno-strict-aliasing'], 36 CCFLAGS = ['-fno-strict-aliasing'],
37 ) 37 )
38 38
39 input_files = [ 39 input_files = [
40 'base/cookie_monster_perftest.cc', 40 'base/cookie_monster_perftest.cc',
41 'disk_cache/disk_cache_perftest.cc', 41 'disk_cache/disk_cache_perftest.cc',
42 'disk_cache/disk_cache_test_util$OBJSUFFIX', 42 'disk_cache/disk_cache_test_util$OBJSUFFIX',
43 43
44 # TODO(sgk): avoid using .cc from base directly 44 # TODO(sgk): avoid using .cc from base directly
45 '$OBJ_ROOT/base/run_all_perftests$OBJSUFFIX', 45 '$OBJ_ROOT/base/run_all_perftests$OBJSUFFIX',
46 '$OBJ_ROOT/base/perftimer$OBJSUFFIX', 46 '$OBJ_ROOT/base/perftimer$OBJSUFFIX',
47 ] 47 ]
48 48
49 if env['PLATFORM'] in ('posix', 'win32'): 49 if not env.Bit('mac'):
50
51 env.ChromeTestProgram('net_perftests', input_files) 50 env.ChromeTestProgram('net_perftests', input_files)
OLDNEW
« no previous file with comments | « net/net_lib.scons ('k') | net/net_unittests.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698