| 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 # TODO: References to ../../third_party/chrome/ should be replaced by using | |
| 15 # installed packages in the chroot. | |
| 16 env.Append( | 14 env.Append( |
| 17 CPPPATH=['..', '../../third_party/chrome/files', '../../common'], | 15 CPPPATH=['..'], |
| 18 CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'], | 16 CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'], |
| 19 LIBPATH=['../../third_party/chrome'], | |
| 20 # These need to be included by anyone linking against _main. | 17 # These need to be included by anyone linking against _main. |
| 21 LIBS=['base', 'gtest', 'rt', 'pthread'], | 18 LIBS=['base', 'gtest', 'rt', 'pthread'], |
| 22 ) | 19 ) |
| 23 for key in Split('CC CXX AR RANLIB LD NM CFLAGS CCFLAGS'): | 20 for key in Split('CC CXX AR RANLIB LD NM CFLAGS CCFLAGS'): |
| 24 value = os.environ.get(key) | 21 value = os.environ.get(key) |
| 25 if value != None: | 22 if value != None: |
| 26 env[key] = value | 23 env[key] = value |
| 27 | 24 |
| 28 env_mainlib = env.Clone() | 25 env_mainlib = env.Clone() |
| 29 env_mainlib.StaticLibrary('microbenchmark_main', driver_sources) | 26 env_mainlib.StaticLibrary('microbenchmark_main', driver_sources) |
| OLD | NEW |