| 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 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 # NACL_GC_WRAP_SYSCALL uses ({...}) syntax. | 9 # NACL_GC_WRAP_SYSCALL uses ({...}) syntax. |
| 10 env.FilterOut(CCFLAGS=['-pedantic']) | 10 env.FilterOut(CCFLAGS=['-pedantic']) |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 env.AddLibraryToSdk(libnacl_exception) | 260 env.AddLibraryToSdk(libnacl_exception) |
| 261 env.ComponentLibrary('libnacl_exception_private', ['nacl_exception_private.c']) | 261 env.ComponentLibrary('libnacl_exception_private', ['nacl_exception_private.c']) |
| 262 | 262 |
| 263 libnacl_list_mappings = env.NaClSdkLibrary( | 263 libnacl_list_mappings = env.NaClSdkLibrary( |
| 264 'libnacl_list_mappings', ['list_mappings.c']) | 264 'libnacl_list_mappings', ['list_mappings.c']) |
| 265 env.AddLibraryToSdk(libnacl_list_mappings) | 265 env.AddLibraryToSdk(libnacl_list_mappings) |
| 266 env.AddHeaderToSdk(['nacl_list_mappings.h']) | 266 env.AddHeaderToSdk(['nacl_list_mappings.h']) |
| 267 env.ComponentLibrary( | 267 env.ComponentLibrary( |
| 268 'libnacl_list_mappings_private', ['list_mappings_private.c']) | 268 'libnacl_list_mappings_private', ['list_mappings_private.c']) |
| 269 | 269 |
| 270 env.ComponentLibrary( | 270 if not env.Bit('nonsfi_nacl'): |
| 271 'libnacl_random_private', | 271 env.ComponentLibrary( |
| 272 [env.ComponentObject('irt_random', | 272 'libnacl_random_private', |
| 273 '${MAIN_DIR}/src/untrusted/irt/irt_random.c'), | 273 [env.ComponentObject('irt_random', |
| 274 env.ComponentObject('irt_nameservice', | 274 '${MAIN_DIR}/src/untrusted/irt/irt_random.c'), |
| 275 '${MAIN_DIR}/src/untrusted/irt/irt_nameservice.c')]) | 275 env.ComponentObject('irt_nameservice', |
| 276 '${MAIN_DIR}/src/untrusted/irt/irt_nameservice.c')]) |
| 276 | 277 |
| 277 | 278 |
| 278 imc_syscalls = [ | 279 imc_syscalls = [ |
| 279 'imc_accept.c', | 280 'imc_accept.c', |
| 280 'imc_connect.c', | 281 'imc_connect.c', |
| 281 'imc_makeboundsock.c', | 282 'imc_makeboundsock.c', |
| 282 'imc_mem_obj_create.c', | 283 'imc_mem_obj_create.c', |
| 283 'imc_recvmsg.c', | 284 'imc_recvmsg.c', |
| 284 'imc_sendmsg.c', | 285 'imc_sendmsg.c', |
| 285 'imc_socketpair.c', | 286 'imc_socketpair.c', |
| (...skipping 24 matching lines...) Expand all Loading... |
| 310 # single .o file avoids this scenario. | 311 # single .o file avoids this scenario. |
| 311 private_combine = [env.ComponentObject(module, '%s.c' % module) | 312 private_combine = [env.ComponentObject(module, '%s.c' % module) |
| 312 for module in ['gc_hooks_private', | 313 for module in ['gc_hooks_private', |
| 313 'sys_private']] | 314 'sys_private']] |
| 314 sys_private.append(env.Command('combined_private${OBJSUFFIX}', | 315 sys_private.append(env.Command('combined_private${OBJSUFFIX}', |
| 315 private_combine, | 316 private_combine, |
| 316 '${LD} -relocatable -o ${TARGET} ${SOURCES}')) | 317 '${LD} -relocatable -o ${TARGET} ${SOURCES}')) |
| 317 | 318 |
| 318 if not env.Bit('nonsfi_nacl'): | 319 if not env.Bit('nonsfi_nacl'): |
| 319 env.ComponentLibrary('libnacl_sys_private', sys_private) | 320 env.ComponentLibrary('libnacl_sys_private', sys_private) |
| OLD | NEW |