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