Skip to content

Commit a27cd68

Browse files
author
NoahAndrews
committed
Copy the DLL dependencies to the release folder to fix non-prebuild usage
1 parent 3f0c2a8 commit a27cd68

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

binding.gyp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,20 @@
1616
],
1717
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
1818
'libraries': [
19+
# These files were placed by download-CanBridge.mjs
1920
'<(module_root_dir)/externalCompileTimeDeps/CANBridge.lib',
2021
'<(module_root_dir)/externalCompileTimeDeps/wpiHal.lib',
2122
'<(module_root_dir)/externalCompileTimeDeps/wpiutil.lib',
2223
],
24+
'copies': [{
25+
'destination': './build/Release',
26+
'files': [
27+
# These files were placed in the prebuilds folder by download-CanBridge.mjs
28+
'<(module_root_dir)/prebuilds/win32-x64/CANBridge.dll',
29+
'<(module_root_dir)/prebuilds/win32-x64/wpiHal.dll',
30+
'<(module_root_dir)/prebuilds/win32-x64/wpiutil.dll',
31+
]
32+
}],
2333
'msvs_settings': {
2434
'VCCLCompilerTool': {
2535
'ExceptionHandling': 1,

0 commit comments

Comments
 (0)