-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
63 lines (62 loc) · 2.58 KB
/
binding.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
{
'variables':
{ # Any variable we wish to create and define
},
'includes':
[ # Any GYP include - or .gypi - files
'./includable.gypi'
],
'targets':
[
{
'target_name': 'action_before_install',
'type': 'none',
'actions':
[
{
'action_name': 'unpack_xrm',
'inputs': [],
'outputs':
[
'<(extracted_destination)' # Package destination
],
'action':
[
'python', # Command
'./unpack.py', # First argument arg[0]
'<(remote_url)', # Second argument arg[1]
'<(remote_branch)', # Third argument arg[2]
'<(archive_name)', # Fourth argument arg[3]
'<(archive_extension)', # Fifth argument arg[4]
'<(archive_destination)', # Sixth argument arg[5]
'<(extracted_destination)' # Seventh argument arg[6]
]
}
]
},
{
'target_name': 'action_install',
'type': 'none',
'dependencies': [ 'action_before_install' ],
'actions':
[
{
'action_name': 'install_xrm',
'inputs': [],
'outputs':
[
'<(package_destination)' # Package destination
],
'action':
[
'python', # Command
'./disburse.py', # First argument arg[0]
'<(archive_destination)nk-xrm-<(remote_branch)', # Second argument arg[1]
'<(package_destination)', # Third argument arg[2]
'<(ignorable_files)' # Fourth argument arg[3]
]
}
]
}
]
}