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

Side by Side Diff: chrome/test/perf/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 | « chrome/test/page_cycler/page_cycler_tests.scons ('k') | chrome/test/plugin/plugin_tests.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) 2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 perf_tests{,.exe} executable. 6 Configuration for building the perf_tests{,.exe} executable.
7 """ 7 """
8 8
9 Import('env') 9 Import('env')
10 10
(...skipping 12 matching lines...) Expand all
23 CPPDEFINES = [ 23 CPPDEFINES = [
24 'PERF_TEST', 24 'PERF_TEST',
25 ], 25 ],
26 LIBS = [ 26 LIBS = [
27 'browser', 27 'browser',
28 'common', 28 'common',
29 'sqlite', 29 'sqlite',
30 ], 30 ],
31 ) 31 )
32 32
33 if env['PLATFORM'] in ('posix', 'darwin'): 33 if env.Bit('posix'):
34 env.SConscript([ 34 env.SConscript([
35 '$LIBEVENT_DIR/using_libevent.scons', 35 '$LIBEVENT_DIR/using_libevent.scons',
36 ], {'env':env}) 36 ], {'env':env})
37 37
38 input_files = [ 38 input_files = [
39 'perftests.cc', 39 'perftests.cc',
40 'url_parse_perftest.cc', 40 'url_parse_perftest.cc',
41 '$BASE_DIR/perftimer$OBJSUFFIX', 41 '$BASE_DIR/perftimer$OBJSUFFIX',
42 '$CHROME_DIR/browser/safe_browsing/database_perftest.cc', 42 '$CHROME_DIR/browser/safe_browsing/database_perftest.cc',
43 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX', 43 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
44 '$CHROME_DIR/browser/visitedlink_perftest.cc', 44 '$CHROME_DIR/browser/visitedlink_perftest.cc',
45 '$CHROME_DIR/common/json_value_serializer_perftest.cc', 45 '$CHROME_DIR/common/json_value_serializer_perftest.cc',
46 ] 46 ]
47 47
48 if env['PLATFORM'] == 'win32': 48 if env.Bit('windows'):
49 env.Prepend( 49 env.Prepend(
50 LIBS = [ 50 LIBS = [
51 'rpcrt4', 51 'rpcrt4',
52 'shlwapi', 52 'shlwapi',
53 'winmm', 53 'winmm',
54 ] 54 ]
55 ) 55 )
56 56
57 if env['PLATFORM'] != 'win32': 57 if env.Bit('linux'):
58 # TODO(port): Port these files. 58 # TODO(port): Port these files.
59 remove_files = [ 59 remove_files = [
60 'url_parse_perftest.cc', 60 'url_parse_perftest.cc',
61 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX', 61 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
62 '$CHROME_DIR/browser/visitedlink_perftest.cc', 62 '$CHROME_DIR/browser/visitedlink_perftest.cc',
63 ] 63 ]
64 for file in remove_files: 64 for file in remove_files:
65 input_files.remove(file) 65 input_files.remove(file)
66 66
67 if env['PLATFORM'] in ('posix', 'win32'): 67 if env.Bit('mac'):
68 # TODO(port): Port these files.
69 remove_files = [
70 'url_parse_perftest.cc',
71 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
72 '$CHROME_DIR/browser/visitedlink_perftest.cc',
73 ]
74 for file in remove_files:
75 input_files.remove(file)
76
77 if not env.Bit('mac'):
68 env.ChromeTestProgram('perf_tests', input_files) 78 env.ChromeTestProgram('perf_tests', input_files)
OLDNEW
« no previous file with comments | « chrome/test/page_cycler/page_cycler_tests.scons ('k') | chrome/test/plugin/plugin_tests.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698