Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import platform | 6 import platform |
| 7 import os | 7 import os |
| 8 | 8 |
| 9 Import('env') | 9 Import('env') |
| 10 | 10 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 else: | 215 else: |
| 216 raise Exception("Unsupported target") | 216 raise Exception("Unsupported target") |
| 217 | 217 |
| 218 if env.Bit('linux'): | 218 if env.Bit('linux'): |
| 219 ldr_inputs += [ | 219 ldr_inputs += [ |
| 220 'posix/nacl_signal.c', | 220 'posix/nacl_signal.c', |
| 221 'posix/sel_addrspace_posix.c' | 221 'posix/sel_addrspace_posix.c' |
| 222 ] | 222 ] |
| 223 if env.Bit('target_arm'): | 223 if env.Bit('target_arm'): |
| 224 ldr_inputs += ['linux/nacl_signal_arm.c'] | 224 ldr_inputs += ['linux/nacl_signal_arm.c'] |
| 225 elif env.Bit('target_mips32'): | |
| 226 pass | |
|
Nick Bray (chromium)
2012/04/27 19:41:33
Nit: Are there TODOs?
| |
| 225 elif env.Bit('target_x86_32'): | 227 elif env.Bit('target_x86_32'): |
| 226 ldr_inputs += ['linux/nacl_signal_32.c'] | 228 ldr_inputs += ['linux/nacl_signal_32.c'] |
| 227 elif env.Bit('target_x86_64'): | 229 elif env.Bit('target_x86_64'): |
| 228 ldr_inputs += ['linux/nacl_signal_64.c'] | 230 ldr_inputs += ['linux/nacl_signal_64.c'] |
| 229 else: | 231 else: |
| 230 raise Exception("Unsupported target") | 232 raise Exception("Unsupported target") |
| 231 | 233 |
| 232 if env.Bit('mac'): | 234 if env.Bit('mac'): |
| 233 ldr_inputs += [ | 235 ldr_inputs += [ |
| 234 'posix/nacl_signal.c', | 236 'posix/nacl_signal.c', |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 955 # TODO(tuduce): Make it work on windows. | 957 # TODO(tuduce): Make it work on windows. |
| 956 env.AddNodeToTestSuite(node, ['medium_tests'], | 958 env.AddNodeToTestSuite(node, ['medium_tests'], |
| 957 'run_sel_ldr_thread_death_test', | 959 'run_sel_ldr_thread_death_test', |
| 958 is_broken=env.Bit('windows')) | 960 is_broken=env.Bit('windows')) |
| 959 | 961 |
| 960 | 962 |
| 961 # This currently tests linking of sel_main_chrome.c *only*. We do not | 963 # This currently tests linking of sel_main_chrome.c *only*. We do not |
| 962 # expect this program to do anything meaningful when run. | 964 # expect this program to do anything meaningful when run. |
| 963 env.ComponentProgram('sel_main_chrome_test', ['sel_main_chrome_test.c'], | 965 env.ComponentProgram('sel_main_chrome_test', ['sel_main_chrome_test.c'], |
| 964 EXTRA_LIBS=sel_ldr_libs) | 966 EXTRA_LIBS=sel_ldr_libs) |
| OLD | NEW |