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

Side by Side Diff: src/platform/minijail/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 | « src/platform/microbenchmark/microbenchmark.cc ('k') | src/platform/minijail/debian/rules » ('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 glob
7 import os 8 import os
8 9
9 env = Environment() 10 env = Environment()
10 11
11 lib_sources = env.Split("""env.cc 12 lib_sources = env.Split("""env.cc
12 interface.cc 13 interface.cc
13 minijail.cc 14 minijail.cc
14 options.cc""") 15 options.cc""")
15 bin_sources = env.Split("""minijail_main.cc""") 16 bin_sources = env.Split("""minijail_main.cc""")
16 test_sources = env.Split("""minijail_unittest.cc 17 test_sources = env.Split("""minijail_unittest.cc
17 minijail_testrunner.cc""") 18 minijail_testrunner.cc""")
18 19 benchmark_sources = glob.glob("*_microbenchmark.cc")
19 #test_sources = env.Split("""../base/strutil.cc""")
20 20
21 env.Append( 21 env.Append(
22 CPPPATH=['..', '../../third_party/chrome/files', '../../common'], 22 CPPPATH=['..', '../../third_party/chrome/files', '../../common'],
23 CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'], 23 CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'],
24 LIBPATH=['../../third_party/chrome'], 24 LIBPATH=['../../third_party/chrome'],
25 LIBS=['cap', 'base', 'pthread', 'rt'], 25 LIBS=['cap', 'base', 'pthread', 'rt'],
26 ) 26 )
27 27
28 env_lib = env.Clone() 28 env_lib = env.Clone()
29 env_lib.SharedLibrary('minijail', lib_sources) 29 env_lib.SharedLibrary('minijail', lib_sources)
30 30
31 env_bin = env.Clone() 31 env_bin = env.Clone()
32 env_bin.Program('minijail', lib_sources + bin_sources) 32 env_bin.Program('minijail', lib_sources + bin_sources)
33 33
34 env_test = env.Clone() 34 env_test = env.Clone()
35 env_test.Append(LIBS=['gtest', 'pcrecpp']) 35 env_test.Append(LIBS=['gtest'])
36 env_test.Program('minijail_unittests', lib_sources + test_sources) 36 env_test.Program('minijail_unittests', lib_sources + test_sources)
37
38 env_benchmarks = env.Clone()
39 # Note, LIBS needs to have: 'gtest', 'base', 'rt', 'pthread'
40 env_benchmarks.Append(LIBS=['microbenchmark_main.a',
41 # Since we want to run this on a prod image,
42 # we just statically pull in gtest.a.
43 File('/usr/lib/libgtest.a')],
44 LIBPATH=['../microbenchmark'])
45 env_benchmarks.Program('minijail_benchmarks', benchmark_sources)
OLDNEW
« no previous file with comments | « src/platform/microbenchmark/microbenchmark.cc ('k') | src/platform/minijail/debian/rules » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698