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

Unified Diff: src/platform/microbenchmark/SConstruct

Issue 492005: Overhaul microbenchmark so that it can be pulled in easily by any package (Closed)
Patch Set: fix cmasone's comments Created 11 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform/microbenchmark/debian/changelog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/microbenchmark/SConstruct
diff --git a/src/platform/microbenchmark/SConstruct b/src/platform/microbenchmark/SConstruct
index 426f10ffa4682fb518c679cfc120c5b08fa342f6..b20f10ed0acc0343d5e3a6b2f7fe0c7c3a3517c9 100644
--- a/src/platform/microbenchmark/SConstruct
+++ b/src/platform/microbenchmark/SConstruct
@@ -11,15 +11,13 @@ env = Environment()
driver_sources = env.Split("""microbenchmark.cc
main.cc""")
-benchmark_sources = env.Split("""benchmarks/getpid.cc
- benchmarks/readwrite.cc""")
-
env.Append(
CPPPATH=['..', '../../third_party/chrome/files', '../../common'],
CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'],
LIBPATH=['../../third_party/chrome'],
- LIBS=['base', 'pthread', 'rt', File('/usr/lib/libgtest.a')],
+ # These need to be included by anyone linking against _main.
+ LIBS=['base', 'gtest', 'rt', 'pthread'],
)
-env_bin = env.Clone()
-env_bin.Program('microbenchmark_runner', driver_sources + benchmark_sources)
+env_mainlib = env.Clone()
+env_mainlib.StaticLibrary('microbenchmark_main', driver_sources)
« no previous file with comments | « no previous file | src/platform/microbenchmark/debian/changelog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698