-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbinding.gyp
80 lines (80 loc) · 2.1 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
{
"variables": {
"module_name%": "cuesdk",
"win_prebuild_path%": "<(module_root_dir)/prebuilds/win32-<(target_arch)"
},
"targets": [
{
"target_name": "<(module_name)",
"sources": ["src/CorsairSdk.cc"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"<(module_root_dir)/iCUESDK/include"
],
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
"conditions": [
[
"OS=='win'",
{
"conditions": [
[
"target_arch == 'x64'",
{
"variables": {
"sdk_arch%": ".x64",
"sdk_arch_path%": "x64"
}
}
]
],
"libraries": [
"<(module_root_dir)/iCUESDK/lib/<(sdk_arch_path)/iCUESDK<(sdk_arch)_2019.lib"
],
"copies": [
{
"destination": "<(win_prebuild_path)",
"files": [
"<(module_root_dir)/iCUESDK/redist/<(sdk_arch_path)/iCUESDK<(sdk_arch)_2019.dll"
]
}
]
}
],
[
"OS=='mac'",
{
"libraries": [
"<(module_root_dir)/iCUESDK/mac/libiCUESDK.dylib",
"-Wl,-rpath,<(module_root_dir)"
],
"link_settings": {
"libraries": [
"-Wl,-rpath,@loader_path",
"-Wl,-rpath,@loader_path/.."
]
}
}
]
]
},
{
"target_name": "action_before_build",
"type": "none",
"conditions": [
[
"OS=='mac'",
{
"copies": [
{
"destination": "<(PRODUCT_DIR)",
"files": ["<(module_root_dir)/iCUESDK/mac/libiCUESDK.dylib"]
}
]
}
]
]
}
]
}