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('env') | 6 Import('env') |
7 | 7 |
8 # (elijahtaylor): Removing so braced groups will work for GC syscall wrapping. | 8 # (elijahtaylor): Removing so braced groups will work for GC syscall wrapping. |
9 env.FilterOut(CCFLAGS=['-pedantic']) | 9 env.FilterOut(CCFLAGS=['-pedantic']) |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 valgrind = env.ComponentObject( | 29 valgrind = env.ComponentObject( |
30 'valgrind_annotations.o', | 30 'valgrind_annotations.o', |
31 '${MAIN_DIR}/src/untrusted/valgrind/dynamic_annotations.c') | 31 '${MAIN_DIR}/src/untrusted/valgrind/dynamic_annotations.c') |
32 | 32 |
33 nc_objs = [env.ComponentObject(module, module + '.c') | 33 nc_objs = [env.ComponentObject(module, module + '.c') |
34 for module in [ | 34 for module in [ |
35 'nc_thread', | 35 'nc_thread', |
36 'nc_mutex', | 36 'nc_mutex', |
37 'nc_condvar', | 37 'nc_condvar', |
38 'nc_semaphore', | 38 'nc_semaphore', |
39 'nc_rwlock', | |
40 'stack_end', | 39 'stack_end', |
41 ] | 40 ] |
42 ] + [valgrind] | 41 ] + [valgrind] |
43 | 42 |
44 # The public library relies on the IRT for crucial system services. | 43 # The public library relies on the IRT for crucial system services. |
45 libpthread = env.ComponentLibrary('libpthread', nc_objs + ['nc_init_irt.c']) | 44 libpthread = env.ComponentLibrary('libpthread', nc_objs + ['nc_init_irt.c']) |
46 env.AddLibraryToSdk(libpthread) | 45 env.AddLibraryToSdk(libpthread) |
47 | 46 |
48 if env.Bit('nonsfi_nacl'): | 47 if env.Bit('nonsfi_nacl'): |
49 nc_private_objs = nc_objs + [ | 48 nc_private_objs = nc_objs + [ |
(...skipping 27 matching lines...) Expand all Loading... |
77 # installed, we ensure that they are in place before they're used. | 76 # installed, we ensure that they are in place before they're used. |
78 for compiler in ['${CC}', '${CXX}']: | 77 for compiler in ['${CC}', '${CXX}']: |
79 # TODO(mcgrathr): This can't be the best way! Ideally we'd just use | 78 # TODO(mcgrathr): This can't be the best way! Ideally we'd just use |
80 # '${CC}' directly in env.Depends and that should be fine for scons. | 79 # '${CC}' directly in env.Depends and that should be fine for scons. |
81 # But sometimes '${CC}' is not just '.../gcc', it's '.../gcc -m32'. | 80 # But sometimes '${CC}' is not just '.../gcc', it's '.../gcc -m32'. |
82 compiler = env.subst(compiler).split()[0] | 81 compiler = env.subst(compiler).split()[0] |
83 env.Depends(env.WhereIs(compiler), n) | 82 env.Depends(env.WhereIs(compiler), n) |
84 else: | 83 else: |
85 n = [] | 84 n = [] |
86 env.Alias('install_libpthread', n) | 85 env.Alias('install_libpthread', n) |
OLD | NEW |