This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
binding.gyp
110 lines (110 loc) · 2.4 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
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
{
"variables": {
"platform": "<(OS)"
},
"conditions": [
[
"platform == 'win'",
{
"variables": {
"platform": "win32"
}
}
],
[
"platform == 'linux'",
{
"variables": {
"platform": "linux"
}
}
]
],
"targets": [
{
"target_name": "openvr",
"sources": [
"src/ivrsystem.cpp",
"src/ivroverlay.cpp",
"src/ivrapplications.cpp",
"src/ivrdebug.cpp",
"src/bindings.cpp",
"src/util.cpp",
"src/openvr.cpp"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"<(module_root_dir)/openvr/"
],
"conditions": [
[
"OS=='win'",
{
"library_dirs": [
"<(module_root_dir)/openvr/lib/"
],
"libraries": [
"openvr_api.lib"
],
"defines": [
"WIN32_LEAN_AND_MEAN",
"VC_EXTRALEAN",
"NOMINMAX"
],
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": [
"/O2",
"/Oy",
"/GL",
"/GF",
"/Gm-",
"/EHsc",
"/MT",
"/GS",
"/Gy",
"/GR-",
"/Gd"
]
},
"VCLinkerTool": {
"AdditionalOptions": [
"/OPT:REF",
"/OPT:ICF",
"/LTCG"
]
}
},
"actions": [
{
"action_name": "copy_openvr_libs",
"inputs": [
"<(module_root_dir)/openvr/bin/openvr_api.dll"
],
"outputs": [
"<(module_root_dir)/build/Release/openvr_api.dll"
],
"action": [
"cp",
"<@(_inputs)",
"<@(_outputs)"
]
}
]
}
],
[
"OS=='linux'",
{
"libraries": [
"<(module_root_dir)/openvr/lib/libopenvr_api.so"
],
"defines": [
"LINUX"
]
}
]
]
}
]
}