Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # -*- python -*- | |
| 2 # | |
| 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 Import('env') | |
| 8 | |
| 9 platform_inputs = []; | |
| 10 | |
| 11 if env.Bit('windows'): | |
| 12 platform_inputs += [ | |
| 13 'win/nacl_process.c', | |
| 14 ] | |
| 15 elif env.Bit('linux'): | |
|
Mark Seaborn
2012/08/24 00:22:42
You could just use "else" instead of two "elif"s h
| |
| 16 platform_inputs += [ | |
| 17 'posix/nacl_process.c', | |
| 18 ] | |
| 19 elif env.Bit('mac'): | |
| 20 platform_inputs += [ | |
| 21 'posix/nacl_process.c', | |
| 22 ] | |
| 23 | |
| 24 env.DualLibrary('nacl_platform', platform_inputs) | |
| 25 | |
| 26 nacl_process_test_exe = env.ComponentProgram('nacl_process_test', | |
| 27 ['nacl_process_test.c'], | |
| 28 EXTRA_LIBS=['nacl_platform', | |
| 29 'platform']) | |
| 30 node = env.CommandTest('nacl_process_test.out', | |
| 31 command=[nacl_process_test_exe]) | |
| 32 | |
| 33 env.AddNodeToTestSuite(node, ['small_tests'], 'run_nacl_process_test') | |
| 34 | |
| 35 env.EnsureRequiredBuildWarnings() | |
| OLD | NEW |