| OLD | NEW |
| 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) |
| OLD | NEW |