blob: c4ba1dc90a28dbd472ef8490df36407eda6ff05a [file] [log] [blame]
# -*- python -*-
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
env = Environment()
driver_sources = env.Split("""microbenchmark.cc
main.cc""")
env.Append(
CPPPATH=['..'],
CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'],
# These need to be included by anyone linking against _main.
LIBS=['base', 'gtest', 'rt', 'pthread'],
)
for key in Split('CC CXX AR RANLIB LD NM CFLAGS CCFLAGS'):
value = os.environ.get(key)
if value != None:
env[key] = value
env_mainlib = env.Clone()
env_mainlib.StaticLibrary('microbenchmark_main', driver_sources)