OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 if 'TRUSTED_ENV' not in env: | 8 if 'TRUSTED_ENV' not in env: |
9 Return() | 9 Return() |
10 trusted_env = env['TRUSTED_ENV'] | 10 trusted_env = env['TRUSTED_ENV'] |
11 | 11 |
12 # This duplicates the library list in src/trusted/service_runtime/build.scons. | 12 # This duplicates the library list in src/trusted/service_runtime/build.scons. |
13 # We would not have to do this if we could get Scons to track dependencies | 13 # We would not have to do this if we could get Scons to track dependencies |
14 # between libraries. | 14 # between libraries. |
15 VALIDATOR_LIBS = [] | 15 VALIDATOR_LIBS = [] |
16 if trusted_env.Bit('target_x86'): | 16 if trusted_env.Bit('target_x86'): |
17 VALIDATOR_LIBS += ['ncopcode_utils', 'ncvalidate'] | |
18 if trusted_env.Bit('target_x86_64'): | 17 if trusted_env.Bit('target_x86_64'): |
19 VALIDATOR_LIBS += ['ncvalidate_sfi'] | 18 VALIDATOR_LIBS += ['ncvalidate_sfi'] |
| 19 VALIDATOR_LIBS += ['ncvalidate'] |
20 elif trusted_env.Bit('target_arm'): | 20 elif trusted_env.Bit('target_arm'): |
21 VALIDATOR_LIBS += ['ncvalidate_arm_v2', 'arm_validator_core'] | 21 VALIDATOR_LIBS += ['ncvalidate_arm_v2', 'arm_validator_core'] |
22 | 22 |
23 DEBUG_LIBS = ['debug_stub_init', 'gdb_rsp', 'debug_stub'] | 23 DEBUG_LIBS = ['debug_stub_init', 'gdb_rsp', 'debug_stub'] |
24 | 24 |
25 runner = trusted_env.ComponentProgram( | 25 runner = trusted_env.ComponentProgram( |
26 'multidomain_test_host', ['multidomain_test_host.c'], | 26 'multidomain_test_host', ['multidomain_test_host.c'], |
27 EXTRA_LIBS=['sel', | 27 EXTRA_LIBS=['sel', |
28 'gio_wrapped_desc', | 28 'gio_wrapped_desc', |
29 'nonnacl_srpc', | 29 'nonnacl_srpc', |
(...skipping 25 matching lines...) Expand all Loading... |
55 # executable. Furthermore, statically-linked nacl-glibc does not | 55 # executable. Furthermore, statically-linked nacl-glibc does not |
56 # work here because of validation failures which require stubout | 56 # work here because of validation failures which require stubout |
57 # mode. | 57 # mode. |
58 is_broken = (env.Bit('build_arm') | 58 is_broken = (env.Bit('build_arm') |
59 or env.Bit('host_mac') | 59 or env.Bit('host_mac') |
60 or env.Bit('host_windows') | 60 or env.Bit('host_windows') |
61 or env.Bit('nacl_glibc')) | 61 or env.Bit('nacl_glibc')) |
62 | 62 |
63 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test', | 63 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test', |
64 is_broken=is_broken) | 64 is_broken=is_broken) |
OLD | NEW |