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

Unified Diff: src/platform/minijail/SConstruct

Issue 466049: Baseline minijail with a commandline switch driven main. (Closed)
Patch Set: fix overly long lines 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/minijail/env.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/minijail/SConstruct
diff --git a/src/platform/minijail/SConstruct b/src/platform/minijail/SConstruct
new file mode 100644
index 0000000000000000000000000000000000000000..6ffe69f5e46d9758b7afbb32c949ef0d95ff38dd
--- /dev/null
+++ b/src/platform/minijail/SConstruct
@@ -0,0 +1,36 @@
+# -*- 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()
+
+lib_sources = env.Split("""env.cc
+ interface.cc
+ minijail.cc
+ options.cc""")
+bin_sources = env.Split("""minijail_main.cc""")
+test_sources = env.Split("""minijail_unittest.cc
+ minijail_testrunner.cc""")
+
+#test_sources = env.Split("""../base/strutil.cc""")
+
+env.Append(
+ CPPPATH=['..', '../../third_party/chrome/files', '../../common'],
+ CCFLAGS=['-g', '-fno-exceptions', '-Wall', '-Werror'],
+ LIBPATH=['../../third_party/chrome'],
+ LIBS=['cap', 'base', 'pthread', 'rt'],
+)
+
+env_lib = env.Clone()
+env_lib.SharedLibrary('minijail', lib_sources)
+
+env_bin = env.Clone()
+env_bin.Program('minijail', lib_sources + bin_sources)
+
+env_test = env.Clone()
+env_test.Append(LIBS=['gtest', 'pcrecpp'])
+env_test.Program('minijail_unittests', lib_sources + test_sources)
« no previous file with comments | « no previous file | src/platform/minijail/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698