This repository was archived by the owner on May 3, 2024. It is now read-only.
forked from greenheartgames/greenworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
65 lines (58 loc) · 1.23 KB
/
binding.gyp
File metadata and controls
65 lines (58 loc) · 1.23 KB
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
{
'conditions': [
['OS=="win"', {
'variables': {
'copy_command%': 'copy',
'module_name%': 'greenworks-win',
'redist_bin_dir%': '',
'lib_extension%': 'lib'
},
}],
['OS=="mac"', {
'variables': {
'copy_command%': 'cp',
'module_name%': 'greenworks-osx',
'redist_bin_dir%': 'osx32',
'lib_extension%': 'dylib'
},
}],
['OS=="linux"', {
'variables': {
'copy_command%': 'cp',
'module_name%': 'greenworks-linux',
'redist_bin_dir%': 'linux32',
'lib_extension%': 'so'
},
}]
],
'targets': [
{
'target_name': 'greenworks',
'sources': [
'main.cpp'
],
'link_settings': {
'ldflags': ['-L$(CURDIR)steamworks-sdk/redistributable_bin/<(redist_bin_dir)'],
'libraries': [
'$(CURDIR)../steamworks-sdk/redistributable_bin/<(redist_bin_dir)/steam_api.<(lib_extension)'
]
}
},
{
'target_name': 'action_after_build',
'type': 'none',
'actions': [
{
'action_name': 'move_node_module',
'inputs': [
'<@(PRODUCT_DIR)/greenworks.node'
],
'outputs': [
'deploy/<@(module_name).node'
],
'action': ['<@(copy_command)', '<@(PRODUCT_DIR)/greenworks.node', 'deploy/<@(module_name).node']
}
]
}
]
}