Chromium Code Reviews| 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() |