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

Unified Diff: src/trusted/platform/build.scons

Issue 10832400: Process abstraction layer for NaCl Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Provide consistent interface across all platforms. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: src/trusted/platform/build.scons
diff --git a/src/trusted/platform/build.scons b/src/trusted/platform/build.scons
new file mode 100644
index 0000000000000000000000000000000000000000..5a9d1fa129b65e9e6c84b639b62af839067b08a9
--- /dev/null
+++ b/src/trusted/platform/build.scons
@@ -0,0 +1,35 @@
+# -*- python -*-
+#
+# Copyright (c) 2012 The Native Client 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('env')
+
+platform_inputs = [];
+
+if env.Bit('windows'):
+ platform_inputs += [
+ 'win/nacl_process.c',
+ ]
+elif env.Bit('linux'):
Mark Seaborn 2012/08/24 00:22:42 You could just use "else" instead of two "elif"s h
+ platform_inputs += [
+ 'posix/nacl_process.c',
+ ]
+elif env.Bit('mac'):
+ platform_inputs += [
+ 'posix/nacl_process.c',
+ ]
+
+env.DualLibrary('nacl_platform', platform_inputs)
+
+nacl_process_test_exe = env.ComponentProgram('nacl_process_test',
+ ['nacl_process_test.c'],
+ EXTRA_LIBS=['nacl_platform',
+ 'platform'])
+node = env.CommandTest('nacl_process_test.out',
+ command=[nacl_process_test_exe])
+
+env.AddNodeToTestSuite(node, ['small_tests'], 'run_nacl_process_test')
+
+env.EnsureRequiredBuildWarnings()

Powered by Google App Engine
This is Rietveld 408576698