| 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 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 # we have some empty source files | 9 # we have some empty source files |
| 10 env.FilterOut(CCFLAGS=['-pedantic']) | 10 env.FilterOut(CCFLAGS=['-pedantic']) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 'munmap.c', | 29 'munmap.c', |
| 30 'nanosleep.c', | 30 'nanosleep.c', |
| 31 'nacl_read_tp.c', | 31 'nacl_read_tp.c', |
| 32 'open.c', | 32 'open.c', |
| 33 'read.c', | 33 'read.c', |
| 34 'pthread_initialize_minimal.c', | 34 'pthread_initialize_minimal.c', |
| 35 'pthread_stubs.c', | 35 'pthread_stubs.c', |
| 36 'sbrk.c', | 36 'sbrk.c', |
| 37 'sched_yield.c', | 37 'sched_yield.c', |
| 38 'stacktrace.c', | 38 'stacktrace.c', |
| 39 'start.c', |
| 39 'stat.c', | 40 'stat.c', |
| 40 'sysconf.c', | 41 'sysconf.c', |
| 41 'tls.c', | 42 'tls.c', |
| 42 'write.c', | 43 'write.c', |
| 43 ] | 44 ] |
| 44 | 45 |
| 45 | 46 |
| 46 sources_for_nacl_extensions = [ | 47 sources_for_nacl_extensions = [ |
| 47 'gc_hooks.c', | 48 'gc_hooks.c', |
| 48 'nacl_irt.c', | 49 'nacl_irt.c', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 71 'irt_mutex.c', | 72 'irt_mutex.c', |
| 72 'irt_cond.c', | 73 'irt_cond.c', |
| 73 'irt_sem.c', | 74 'irt_sem.c', |
| 74 'irt_tls.c', | 75 'irt_tls.c', |
| 75 'irt_blockhook.c', | 76 'irt_blockhook.c', |
| 76 ] | 77 ] |
| 77 | 78 |
| 78 env.NaClSdkLibrary('libnacl', sources + irt_interface_sources) | 79 env.NaClSdkLibrary('libnacl', sources + irt_interface_sources) |
| 79 | 80 |
| 80 env.AddLibraryToSdk(['libnacl']) | 81 env.AddLibraryToSdk(['libnacl']) |
| 81 header_install = env.AddHeaderToSdk(['nacl_thread.h']) | 82 header_install = env.AddHeaderToSdk(['nacl_startup.h', 'nacl_thread.h']) |
| 82 env.Requires('libnacl', header_install) | 83 env.Requires('libnacl', header_install) |
| 83 | 84 |
| 84 env.NaClSdkLibrary('libnacl_dyncode', ['dyncode.c'], LIBS=['nacl']) | 85 env.NaClSdkLibrary('libnacl_dyncode', ['dyncode.c'], LIBS=['nacl']) |
| 85 env.AddLibraryToSdk(['libnacl_dyncode']) | 86 env.AddLibraryToSdk(['libnacl_dyncode']) |
| 86 | 87 |
| 87 imc_syscalls = [ | 88 imc_syscalls = [ |
| 88 'imc_accept.c', | 89 'imc_accept.c', |
| 89 'imc_connect.c', | 90 'imc_connect.c', |
| 90 'imc_makeboundsock.c', | 91 'imc_makeboundsock.c', |
| 91 'imc_mem_obj_create.c', | 92 'imc_mem_obj_create.c', |
| 92 'imc_recvmsg.c', | 93 'imc_recvmsg.c', |
| 93 'imc_sendmsg.c', | 94 'imc_sendmsg.c', |
| 94 'imc_socketpair.c', | 95 'imc_socketpair.c', |
| 95 'nameservice.c', | 96 'nameservice.c', |
| 96 ] | 97 ] |
| 97 | 98 |
| 98 env.NaClSdkLibrary('libimc_syscalls', imc_syscalls) | 99 env.NaClSdkLibrary('libimc_syscalls', imc_syscalls) |
| 99 env.AddLibraryToSdk(['libimc_syscalls']) | 100 env.AddLibraryToSdk(['libimc_syscalls']) |
| OLD | NEW |