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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# -*- python -*-
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
######################################################################
'variables': {
'COMMAND_TESTER': '<(DEPTH)/native_client/tools/command_tester.py',
'common_sources': [
'nacl_imc_common.cc',
'nacl_imc_c.h',
],
'conditions': [
['OS=="linux"', {
'common_sources': [
'linux/nacl_imc.cc',
'posix/nacl_imc_posix.cc',
],
}],
['OS=="mac"', {
'common_sources': [
'osx/nacl_imc.cc',
'posix/nacl_imc_posix.cc',
],
}],
['OS=="win"', {
'common_sources': [
'win/nacl_imc.cc',
'win/nacl_shm.cc',
],
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': '2', # /EHsc
},
},
}],
],
},
######################################################################
'includes': [
'../../../build/common.gypi',
],
######################################################################
'target_defaults': {
},
'targets': [
# ----------------------------------------------------------------------
{
'target_name': 'imc',
'type': 'static_library',
'sources': [
'<@(common_sources)',
],
},
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
{
'target_name': 'sigpipe_test',
'type': 'executable',
'sources': [
'sigpipe_test.cc',
],
'dependencies': [
'<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc',
'<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform',
'<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio',
],
},
],
'conditions': [
['target_arch!="arm"', {
'targets': [
# NOTE: we do not support untrusted gyp build on arm yet.
{
'target_name': 'imc_lib',
'type': 'none',
'variables': {
'nlib_target': 'libimc.a',
'nso_target': 'libimc.so',
'build_glibc': 1,
'build_newlib': 1,
'sources': ['nacl_imc_common.cc', 'nacl/nacl_imc.cc'],
},
'dependencies': [
'<(DEPTH)/native_client/tools.gyp:prep_toolchain',
],
},
],
}],
['OS=="win" and target_arch=="ia32"', {
'targets': [
# ---------------------------------------------------------------------
{
'target_name': 'imc64',
'type': 'static_library',
'variables': {
'win_target': 'x64',
},
'sources': [
'<@(common_sources)',
],
},
# ---------------------------------------------------------------------
{
'target_name': 'sigpipe_test64',
'type': 'executable',
'variables': {
'win_target': 'x64',
},
'sources': [
'sigpipe_test.cc',
],
'dependencies': [
'<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc64',
'<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform64',
'<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio64',
],
},
],
}],
],
}
# TODO: some tests missing, c.f. build.scons
|