-
Notifications
You must be signed in to change notification settings - Fork 13
/
binding.gyp
77 lines (77 loc) · 2.67 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
{
"targets": [
{
"target_name": "fsuipcwasm",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": [
"-std:c++17"
],
"ExceptionHandling": 1,
},
},
"sources": [
"src/index.cc",
"src/FSUIPCWASM.cc",
"third_party/FSUIPC_WAPI/CDAIdBank.cpp",
"third_party/FSUIPC_WAPI/ClientDataArea.cpp",
"third_party/FSUIPC_WAPI/Logger.cpp",
"third_party/FSUIPC_WAPI/WASMIF.cpp"
],
"include_dirs" : [
"src",
"third_party",
"<!(node -p \"require('node-addon-api').include_dir\")",
"<(msfs_sdk)/SimConnect SDK/include"
],
"link_settings": {
"libraries": [
"-lshlwapi",
"-luser32",
"-lws2_32",
"-lshell32",
"-lole32",
],
"library_dirs": [
"<(msfs_sdk)/SimConnect SDK/lib/static",
],
},
# https://github.com/nodejs/node-gyp/issues/1686#issuecomment-483665821
"configurations": {
"Debug": {
"msvs_settings": {
"VCCLCompilerTool": {
# 0 - MultiThreaded (/MT)
# 1 - MultiThreadedDebug (/MTd)
# 2 - MultiThreadedDLL (/MD)
# 3 - MultiThreadedDebugDLL (/MDd)
"RuntimeLibrary": 3,
},
"VCLinkerTool": {
"AdditionalDependencies": [
"SimConnect_debug.lib"
]
},
}
},
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeLibrary": 2, # MultiThreadedDLL
},
"VCLinkerTool": {
"AdditionalDependencies": [
"SimConnect.lib"
]
},
},
},
},
}
],
"variables": {
"msfs_sdk": "<!(node -p \"process.env.MSFS_SDK || \\\"C:\\MSFS SDK\\\"\")"
}
}