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

Side by Side Diff: src/platform/microbenchmark/SConstruct

Issue 492005: Overhaul microbenchmark so that it can be pulled in easily by any package (Closed)
Patch Set: fix cmasone's comments Created 11 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
« no previous file with comments | « no previous file | src/platform/microbenchmark/debian/changelog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import os 7 import os
8 8
9 env = Environment() 9 env = Environment()
10 10
11 driver_sources = env.Split("""microbenchmark.cc 11 driver_sources = env.Split("""microbenchmark.cc
12 main.cc""") 12 main.cc""")
13 13
14 benchmark_sources = env.Split("""benchmarks/getpid.cc
15 benchmarks/readwrite.cc""")
16
17 env.Append( 14 env.Append(
18 CPPPATH=['..', '../../third_party/chrome/files', '../../common'], 15 CPPPATH=['..', '../../third_party/chrome/files', '../../common'],
19 CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'], 16 CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'],
20 LIBPATH=['../../third_party/chrome'], 17 LIBPATH=['../../third_party/chrome'],
21 LIBS=['base', 'pthread', 'rt', File('/usr/lib/libgtest.a')], 18 # These need to be included by anyone linking against _main.
19 LIBS=['base', 'gtest', 'rt', 'pthread'],
22 ) 20 )
23 21
24 env_bin = env.Clone() 22 env_mainlib = env.Clone()
25 env_bin.Program('microbenchmark_runner', driver_sources + benchmark_sources) 23 env_mainlib.StaticLibrary('microbenchmark_main', driver_sources)
OLDNEW
« no previous file with comments | « no previous file | src/platform/microbenchmark/debian/changelog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698