Skip to content

Commit

Permalink
try bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
kmamal committed May 26, 2021
1 parent bc0979e commit a82b809
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 8 deletions.
30 changes: 26 additions & 4 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@
'link_settings': {
'libraries': [
'-Wl,-rpath,\'$$ORIGIN\'',
'-Wl,-rpath,\'$$ORIGIN\'/..'
],
}
},
'copies': [
{
'destination': '<(module_root_dir)/build/Release',
'files': [
'<(module_root_dir)/deps/linux/libSDL2-2.0.so.0',
]
}
]
} ],
[ 'OS=="mac"', {
'sources': [
Expand All @@ -32,9 +39,16 @@
'link_settings': {
'libraries': [
'-Wl,-rpath,@loader_path',
'-Wl,-rpath,@loader_path/..',
],
}
},
'copies': [
{
'destination': '<(module_root_dir)/build/Release',
'files': [
'<(module_root_dir)/deps/mac/libSDL2-2.0.0.dylib',
]
}
]
} ],
[ 'OS=="win"', {
'sources': [
Expand All @@ -48,6 +62,14 @@
'LanguageStandard': 'stdcpp17',
},
},
'copies': [
{
'destination': '<(module_root_dir)/build/Release',
'files': [
'<(module_root_dir)/deps/windows/libSDL2.dll',
]
}
]
} ],
],
},
Expand Down
1 change: 0 additions & 1 deletion deps/linux/libSDL2-2.0.so

This file was deleted.

1 change: 0 additions & 1 deletion deps/linux/libSDL2-2.0.so.0

This file was deleted.

Binary file added deps/linux/libSDL2-2.0.so.0
Binary file not shown.
Binary file removed deps/linux/libSDL2-2.0.so.0.10.0
Binary file not shown.
1 change: 0 additions & 1 deletion deps/linux/libSDL2.so

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"test": "tests/run-all.sh",
"rebuild": "node-gyp rebuild --verbose",
"prebuild": "prebuild --runtime napi --strip --verbose",
"prebuild": "prebuild --runtime napi --include-regex \"\\.(node|dll|dylib|so\\.0)$\" --verbose",
"install": "prebuild-install --runtime napi --verbose || node-gyp rebuild --verbose"
},
"binary": {
Expand All @@ -42,4 +42,4 @@
"devDependencies": {
"prebuild": "^10.0.1"
}
}
}

0 comments on commit a82b809

Please sign in to comment.