-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathuvjs.gyp
114 lines (98 loc) · 2.02 KB
/
uvjs.gyp
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
{
'variables': {
'v8_use_snapshot%': 'true',
# Turn off -Werror in V8
# See http://codereview.chromium.org/8159015
'werror': '',
},
'targets': [
{
'target_name': 'libuvjs',
'type': 'static_library',
'include_dirs': [
'src',
'vendor/uv/include',
'vendor/v8/include',
],
'sources': [
'common.gypi',
'src/uvjs.cpp',
],
'defines': [
'ARCH="<(target_arch)"',
'PLATFORM="<(OS)"',
],
'direct_dependent_settings': {
'include_dirs': [
'src',
],
},
},
{
'target_name': 'uvjs',
'type': 'executable',
'include_dirs': [
'src',
],
'sources': [
'common.gypi',
'test/shell/main.cpp'
],
'defines': [
'ARCH="<(target_arch)"',
'PLATFORM="<(OS)"',
],
'dependencies': [
'vendor/v8/tools/gyp/v8.gyp:v8',
'vendor/uv/uv.gyp:libuv',
'libuvjs',
],
},
{
'target_name': 'uv',
'type': 'executable',
'dependencies': [
'js2c#host',
],
'include_dirs': [
'src',
'<(SHARED_INTERMEDIATE_DIR)', # for natives.h
],
'sources': [
'common.gypi',
'uv/main.cpp'
],
'defines': [
'ARCH="<(target_arch)"',
'PLATFORM="<(OS)"',
],
'dependencies': [
'vendor/v8/tools/gyp/v8.gyp:v8',
'vendor/uv/uv.gyp:libuv',
'libuvjs',
],
},
{
'target_name': 'js2c',
'type': 'none',
'toolsets': ['host'],
'actions': [
{
'action_name': 'js2c',
'inputs': [
'uv/lib/bootstrap.js',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/natives.h',
],
'action': [
'<(python)',
'tools/js2c.py',
'<@(_outputs)',
'<@(_inputs)',
],
},
],
}, # end node_js2c
] # end targets
}