OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
| 7 import os |
| 8 |
| 9 env = Environment() |
| 10 |
| 11 driver_sources = env.Split("""microbenchmark.cc |
| 12 main.cc""") |
| 13 |
| 14 benchmark_sources = env.Split("""benchmarks/getpid.cc |
| 15 benchmarks/readwrite.cc""") |
| 16 |
| 17 env.Append( |
| 18 CPPPATH=['..', '../../third_party/chrome/files', '../../common'], |
| 19 CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'], |
| 20 LIBPATH=['../../third_party/chrome'], |
| 21 LIBS=['base', 'pthread', 'rt', File('/usr/lib/libgtest.a')], |
| 22 ) |
| 23 |
| 24 env_bin = env.Clone() |
| 25 env_bin.Program('microbenchmark_runner', driver_sources + benchmark_sources) |
OLD | NEW |