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

Side by Side Diff: chrome/test/perf/perftests.scons

Issue 9639: Port flush_cache tool. (Closed) Base URL: http://src.chromium.org/svn/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/perf/perftests.cc ('k') | chrome/tools/perf/flush_cache/flush_cache.cc » ('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) 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__ = """
6 Configuration for building the perf_tests{,.exe} executable.
7 """
8
5 Import('env') 9 Import('env')
6 10
7 env = env.Clone() 11 env = env.Clone()
8 12
9 env.ApplySConscript([ 13 env.ApplySConscript([
10 '$BASE_DIR/gfx/using_base_gfx.scons',
11 '$BASE_DIR/using_base.scons', 14 '$BASE_DIR/using_base.scons',
12 '$BZIP2_DIR/using_bzip2.scons', 15 '$NET_DIR/using_net.scons',
13 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons',
14 '$CHROME_SRC_DIR/build/using_googleurl.scons', 16 '$CHROME_SRC_DIR/build/using_googleurl.scons',
15 '$CHROME_SRC_DIR/build/using_v8.scons',
16 '$GTEST_DIR/../using_gtest.scons', 17 '$GTEST_DIR/../using_gtest.scons',
17 '$ICU38_DIR/using_icu38.scons', 18 '$ICU38_DIR/using_icu38.scons',
18 '$LIBJPEG_DIR/using_libjpeg.scons',
19 '$LIBPNG_DIR/using_libpng.scons',
20 '$LIBXML_DIR/using_libxml.scons',
21 '$LIBXSLT_DIR/using_libxslt.scons',
22 '$MODP_B64_DIR/using_modp_b64.scons', 19 '$MODP_B64_DIR/using_modp_b64.scons',
23 '$NET_DIR/using_net.scons',
24 '$SDCH_DIR/using_sdch.scons',
25 '$SKIA_DIR/using_skia.scons',
26 '$ZLIB_DIR/using_zlib.scons',
27 ]) 20 ])
28 21
29 env.Prepend( 22 env.Prepend(
30 CPPDEFINES = [ 23 CPPDEFINES = [
31 'PERF_TEST', 24 'PERF_TEST',
32 ], 25 ],
33 LIBS = [ 26 LIBS = [
34 'activex_shim',
35 'browser', 27 'browser',
36 'browser_views',
37 'common', 28 'common',
38 'debugger',
39 'default_plugin',
40 'glue',
41 'JavaScriptCore_pcre',
42 'plugin',
43 'port',
44 'renderer',
45 'sqlite', 29 'sqlite',
46 'util',
47 'v8_snapshot',
48 'V8Bindings',
49 'views',
50 'WebCore',
51 'WTF',
52 ], 30 ],
53 ) 31 )
54 32
55 if env['PLATFORM'] == 'win32': 33 if env['PLATFORM'] in ('posix', 'darwin'):
56 env.Prepend( 34 env.SConscript([
57 LIBS = [ 35 '$LIBEVENT_DIR/using_libevent.scons',
58 'rpcrt4', 36 ], {'env':env})
59 'shlwapi',
60 'winmm',
61 ],
62 )
63 37
64 input_files = [ 38 input_files = [
65 'perftests.cc', 39 'perftests.cc',
66 'url_parse_perftest.cc', 40 'url_parse_perftest.cc',
67 '$BASE_DIR/perftimer$OBJSUFFIX', 41 '$BASE_DIR/perftimer$OBJSUFFIX',
68 '$CHROME_DIR/browser/safe_browsing/database_perftest.cc', 42 '$CHROME_DIR/browser/safe_browsing/database_perftest.cc',
69 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX', 43 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
70 '$CHROME_DIR/browser/visitedlink_perftest.cc', 44 '$CHROME_DIR/browser/visitedlink_perftest.cc',
71 '$CHROME_DIR/common/json_value_serializer_perftest.cc', 45 '$CHROME_DIR/common/json_value_serializer_perftest.cc',
72 ] 46 ]
73 47
74 env.ChromeTestProgram('perf_tests', input_files) 48 if env['PLATFORM'] == 'win32':
49 env.Prepend(
50 LIBS = [
51 'rpcrt4',
52 'shlwapi',
53 'winmm',
54 ]
55 )
56
57 if env['PLATFORM'] != 'win32':
58 # TODO(port): Port these files.
59 remove_files = [
60 'url_parse_perftest.cc',
61 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
62 '$CHROME_DIR/browser/visitedlink_perftest.cc',
63 ]
64 for file in remove_files:
65 input_files.remove(file)
66
67 if env['PLATFORM'] in ('posix', 'win32'):
68 env.ChromeTestProgram('perf_tests', input_files)
OLDNEW
« no previous file with comments | « chrome/test/perf/perftests.cc ('k') | chrome/tools/perf/flush_cache/flush_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698