OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../../../build/common.gypi', | 7 '../../../build/common.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'common_sources': [ | 10 'common_sources': [ |
11 'nc_thread.c', | 11 'nc_thread.c', |
12 'nc_mutex.c', | 12 'nc_mutex.c', |
13 'nc_condvar.c', | 13 'nc_condvar.c', |
14 'nc_semaphore.c', | 14 'nc_semaphore.c', |
15 'nc_token.c', | 15 'nc_token.c', |
16 'nc_hash.c', | 16 'nc_hash.c', |
17 'nc_init_irt.c', | 17 'nc_init_irt.c', |
18 '../valgrind/dynamic_annotations.c', | 18 '../valgrind/dynamic_annotations.c', |
19 ], | 19 ], |
20 }, | 20 }, |
21 'conditions': [ | 21 'targets' : [ |
22 # NOTE: We do not support untrusted gyp build on arm yet. | 22 { |
23 ['target_arch!="arm"', { | 23 'target_name': 'pthread_lib', |
24 'targets' : [ | 24 'type': 'none', |
25 { | 25 'variables': { |
26 'target_name': 'pthread_lib', | 26 'nlib_target': 'libpthread.a', |
27 'type': 'none', | 27 'build_glibc': 0, |
28 'variables': { | 28 'build_newlib': 1, |
29 'nlib_target': 'libpthread.a', | 29 'sources': ['<@(common_sources)'] |
30 'build_glibc': 0, | 30 }, |
31 'build_newlib': 1, | 31 'dependencies': [ |
32 'sources': ['<@(common_sources)'] | 32 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
33 }, | |
34 'dependencies': [ | |
35 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
36 ], | |
37 }, | |
38 { | |
39 'target_name': 'pthreadb_private_lib', | |
40 'type': 'none', | |
41 'variables': { | |
42 'nlib_target': 'libpthread_private.a', | |
43 'build_glibc': 0, | |
44 'build_newlib': 1, | |
45 'sources': [ | |
46 '<@(common_sources)', | |
47 'nc_init_private.c', | |
48 '../irt/irt_blockhook.c', | |
49 '../irt/irt_cond.c', | |
50 '../irt/irt_mutex.c', | |
51 '../irt/irt_sem.c', | |
52 ], | |
53 }, | |
54 'dependencies': [ | |
55 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
56 'pthread_lib' | |
57 ], | |
58 }, | |
59 ], | 33 ], |
60 }], | 34 }, |
| 35 { |
| 36 'target_name': 'pthreadb_private_lib', |
| 37 'type': 'none', |
| 38 'variables': { |
| 39 'nlib_target': 'libpthread_private.a', |
| 40 'build_glibc': 0, |
| 41 'build_newlib': 1, |
| 42 'sources': [ |
| 43 '<@(common_sources)', |
| 44 'nc_init_private.c', |
| 45 '../irt/irt_blockhook.c', |
| 46 '../irt/irt_cond.c', |
| 47 '../irt/irt_mutex.c', |
| 48 '../irt/irt_sem.c', |
| 49 ], |
| 50 }, |
| 51 'dependencies': [ |
| 52 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 53 'pthread_lib' |
| 54 ], |
| 55 }, |
61 ], | 56 ], |
62 } | 57 } |
OLD | NEW |