Commit with fixed paths

This commit is contained in:
2022-02-10 03:46:44 +01:00
parent 44ef9ad3bf
commit b0956ac5d1
51 changed files with 2450 additions and 1 deletions

52
binding.gyp Normal file
View File

@@ -0,0 +1,52 @@
{
"targets": [
{
"target_name": "node_simconnect",
"sources": [
"src/simconnect_session.cc",
"src/simconnect_session.h",
"src/commons.h",
"src/binding.h",
"src/binding.cc",
"src/client_handler.h",
"src/client_handler.cc",
"src/dispatch_queue_worker.h",
"src/dispatch_queue_worker.cc",
],
'include_dirs': [
"SimConnect/Inc",
"<!(node -p \"require('node-addon-api').include_dir\")",
],
"link_settings": {
"libraries": [
"../SimConnect/lib/SimConnect",
"Ws2_32.lib",
"Shlwapi.lib"
]
},
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
'configurations': {
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': '3', # /MDd
'ExceptionHandling': 1,
'AdditionalOptions': [ '-std:c++17', ],
}
}
},
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': '2', # /MD
'ExceptionHandling': 1,
'AdditionalOptions': [ '-std:c++17', ],
},
}
}
}
}
]
}