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

Side by Side Diff: src/platform/microbenchmark/SConstruct

Issue 553044: Use packaged libchrome and libchromeos rather than in-tree references (Closed)
Patch Set: Created 10 years, 11 months 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
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 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)
OLDNEW
« no previous file with comments | « src/platform/metrics_daemon/debian/changelog ('k') | src/platform/microbenchmark/debian/changelog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698