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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 raise Exception("Unsupported target") | 219 raise Exception("Unsupported target") |
220 | 220 |
221 if env.Bit('linux'): | 221 if env.Bit('linux'): |
222 ldr_inputs += [ | 222 ldr_inputs += [ |
223 'linux/thread_suspension.c', | 223 'linux/thread_suspension.c', |
224 'posix/nacl_signal.c', | 224 'posix/nacl_signal.c', |
225 'posix/sel_addrspace_posix.c' | 225 'posix/sel_addrspace_posix.c' |
226 ] | 226 ] |
227 if env.Bit('target_arm'): | 227 if env.Bit('target_arm'): |
228 ldr_inputs += ['linux/nacl_signal_arm.c'] | 228 ldr_inputs += ['linux/nacl_signal_arm.c'] |
| 229 elif env.Bit('target_mips32'): |
| 230 # TODO(petarj): Add support for MIPS. |
| 231 pass |
229 elif env.Bit('target_x86_32'): | 232 elif env.Bit('target_x86_32'): |
230 ldr_inputs += ['linux/nacl_signal_32.c'] | 233 ldr_inputs += ['linux/nacl_signal_32.c'] |
231 elif env.Bit('target_x86_64'): | 234 elif env.Bit('target_x86_64'): |
232 ldr_inputs += ['linux/nacl_signal_64.c'] | 235 ldr_inputs += ['linux/nacl_signal_64.c'] |
233 else: | 236 else: |
234 raise Exception("Unsupported target") | 237 raise Exception("Unsupported target") |
235 | 238 |
236 if env.Bit('mac'): | 239 if env.Bit('mac'): |
237 ldr_inputs += [ | 240 ldr_inputs += [ |
238 'generic/thread_suspension.c', | 241 'generic/thread_suspension.c', |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 # TODO(tuduce): Make it work on windows. | 953 # TODO(tuduce): Make it work on windows. |
951 env.AddNodeToTestSuite(node, ['medium_tests'], | 954 env.AddNodeToTestSuite(node, ['medium_tests'], |
952 'run_sel_ldr_thread_death_test', | 955 'run_sel_ldr_thread_death_test', |
953 is_broken=env.Bit('windows')) | 956 is_broken=env.Bit('windows')) |
954 | 957 |
955 | 958 |
956 # This currently tests linking of sel_main_chrome.c *only*. We do not | 959 # This currently tests linking of sel_main_chrome.c *only*. We do not |
957 # expect this program to do anything meaningful when run. | 960 # expect this program to do anything meaningful when run. |
958 env.ComponentProgram('sel_main_chrome_test', ['sel_main_chrome_test.c'], | 961 env.ComponentProgram('sel_main_chrome_test', ['sel_main_chrome_test.c'], |
959 EXTRA_LIBS=sel_ldr_libs) | 962 EXTRA_LIBS=sel_ldr_libs) |
OLD | NEW |