| 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 # TODO(petarj): Add support for MIPS. |
| 227 pass |
| 225 elif env.Bit('target_x86_32'): | 228 elif env.Bit('target_x86_32'): |
| 226 ldr_inputs += ['linux/nacl_signal_32.c'] | 229 ldr_inputs += ['linux/nacl_signal_32.c'] |
| 227 elif env.Bit('target_x86_64'): | 230 elif env.Bit('target_x86_64'): |
| 228 ldr_inputs += ['linux/nacl_signal_64.c'] | 231 ldr_inputs += ['linux/nacl_signal_64.c'] |
| 229 else: | 232 else: |
| 230 raise Exception("Unsupported target") | 233 raise Exception("Unsupported target") |
| 231 | 234 |
| 232 if env.Bit('mac'): | 235 if env.Bit('mac'): |
| 233 ldr_inputs += [ | 236 ldr_inputs += [ |
| 234 'posix/nacl_signal.c', | 237 '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. | 958 # TODO(tuduce): Make it work on windows. |
| 956 env.AddNodeToTestSuite(node, ['medium_tests'], | 959 env.AddNodeToTestSuite(node, ['medium_tests'], |
| 957 'run_sel_ldr_thread_death_test', | 960 'run_sel_ldr_thread_death_test', |
| 958 is_broken=env.Bit('windows')) | 961 is_broken=env.Bit('windows')) |
| 959 | 962 |
| 960 | 963 |
| 961 # This currently tests linking of sel_main_chrome.c *only*. We do not | 964 # This currently tests linking of sel_main_chrome.c *only*. We do not |
| 962 # expect this program to do anything meaningful when run. | 965 # expect this program to do anything meaningful when run. |
| 963 env.ComponentProgram('sel_main_chrome_test', ['sel_main_chrome_test.c'], | 966 env.ComponentProgram('sel_main_chrome_test', ['sel_main_chrome_test.c'], |
| 964 EXTRA_LIBS=sel_ldr_libs) | 967 EXTRA_LIBS=sel_ldr_libs) |
| OLD | NEW |