| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 # This module shouldn't be built in an environment that uses glibc. | 9 # This module shouldn't be built in an environment that uses glibc. |
| 10 if env.Bit('nacl_glibc'): | 10 if env.Bit('nacl_glibc'): |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 native_env.PNaClForceNative() | 69 native_env.PNaClForceNative() |
| 70 irt_support_objs.append(native_env.ComponentObject('aeabi_read_tp.o', | 70 irt_support_objs.append(native_env.ComponentObject('aeabi_read_tp.o', |
| 71 'aeabi_read_tp.S')) | 71 'aeabi_read_tp.S')) |
| 72 | 72 |
| 73 # These go into only one image or the other. | 73 # These go into only one image or the other. |
| 74 irt_nonbrowser = ['irt_interfaces.c', | 74 irt_nonbrowser = ['irt_interfaces.c', |
| 75 ] | 75 ] |
| 76 | 76 |
| 77 irt_browser = ['irt_interfaces_ppapi.c', | 77 irt_browser = ['irt_interfaces_ppapi.c', |
| 78 'irt_ppapi.c', | 78 'irt_ppapi.c', |
| 79 'irt_manifest.c', |
| 79 ] | 80 ] |
| 80 | 81 |
| 81 def LinkIrt(output, files, libs): | 82 def LinkIrt(output, files, libs): |
| 82 return blob_env.ComponentProgram(output, irt_support_objs + files, | 83 return blob_env.ComponentProgram(output, irt_support_objs + files, |
| 83 EXTRA_LIBS=libs + irt_support_libs) | 84 EXTRA_LIBS=libs + irt_support_libs) |
| 84 | 85 |
| 85 irt_core_library = LinkIrt('irt_core', irt_nonbrowser, []) | 86 irt_core_library = LinkIrt('irt_core', irt_nonbrowser, []) |
| 86 irt_library = LinkIrt('irt', irt_browser, ['ppruntime', | 87 irt_library = LinkIrt('irt', irt_browser, ['ppruntime', |
| 87 'srpc', | 88 'srpc', |
| 88 'imc_syscalls', | 89 'imc_syscalls', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 101 # call to __nacl_read_tp, which the IRT code overrides to segregate | 102 # call to __nacl_read_tp, which the IRT code overrides to segregate |
| 102 # IRT-private TLS from user TLS. | 103 # IRT-private TLS from user TLS. |
| 103 node = env.CommandTest('irt_tls_test.out', | 104 node = env.CommandTest('irt_tls_test.out', |
| 104 ['${PYTHON}', env.File('check_tls.py'), | 105 ['${PYTHON}', env.File('check_tls.py'), |
| 105 '${OBJDUMP}', irt_library]) | 106 '${OBJDUMP}', irt_library]) |
| 106 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_tls_test') | 107 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_tls_test') |
| 107 node = env.CommandTest('irt_core_tls_test.out', | 108 node = env.CommandTest('irt_core_tls_test.out', |
| 108 ['${PYTHON}', env.File('check_tls.py'), | 109 ['${PYTHON}', env.File('check_tls.py'), |
| 109 '${OBJDUMP}', irt_core_library]) | 110 '${OBJDUMP}', irt_core_library]) |
| 110 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_core_tls_test') | 111 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_core_tls_test') |
| OLD | NEW |