1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright (c) 2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
__doc__ = """
Configuration for building the perf_tests{,.exe} executable.
"""
Import('env')
env = env.Clone()
env.ApplySConscript([
'$BASE_DIR/using_base.scons',
'$NET_DIR/using_net.scons',
'$CHROME_SRC_DIR/build/using_googleurl.scons',
'$GTEST_DIR/../using_gtest.scons',
'$ICU38_DIR/using_icu38.scons',
'$MODP_B64_DIR/using_modp_b64.scons',
])
env.Prepend(
CPPDEFINES = [
'PERF_TEST',
],
LIBS = [
'browser',
'common',
'sqlite',
],
)
if env.Bit('posix'):
env.SConscript([
'$LIBEVENT_DIR/using_libevent.scons',
], {'env':env})
input_files = [
'perftests.cc',
'url_parse_perftest.cc',
'$BASE_DIR/perftimer$OBJSUFFIX',
'$CHROME_DIR/browser/safe_browsing/database_perftest.cc',
'$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
'$CHROME_DIR/browser/visitedlink_perftest.cc',
'$CHROME_DIR/common/json_value_serializer_perftest.cc',
]
if env.Bit('windows'):
env.Prepend(
LIBS = [
'rpcrt4',
'shlwapi',
'winmm',
]
)
if env.Bit('linux'):
# TODO(port): Port these files.
remove_files = [
'url_parse_perftest.cc',
'$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
'$CHROME_DIR/browser/visitedlink_perftest.cc',
]
for file in remove_files:
input_files.remove(file)
if env.Bit('mac'):
# TODO(port): Port these files.
remove_files = [
'url_parse_perftest.cc',
'$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX',
'$CHROME_DIR/browser/visitedlink_perftest.cc',
]
for file in remove_files:
input_files.remove(file)
if not env.Bit('mac'):
env.ChromeTestProgram('perf_tests', input_files)
|