hamlib 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.gyp CHANGED
@@ -21,34 +21,40 @@
21
21
  "cflags_cc!": [ "-fno-exceptions" ],
22
22
  "conditions": [
23
23
  # Linux configuration
24
- ["OS==\"linux\"", {
25
- "include_dirs": [
26
- "/usr/include",
27
- "/usr/local/include"
28
- ],
29
- "libraries": [
30
- "-L/usr/lib",
31
- "-L/usr/local/lib",
32
- "-lhamlib"
33
- ]
34
- }],
24
+ ["OS==\"linux\"", {
25
+ "include_dirs": [
26
+ "/usr/include",
27
+ "/usr/local/include"
28
+ ],
29
+ "libraries": [
30
+ "-L/usr/lib",
31
+ "-L/usr/local/lib",
32
+ "-lhamlib"
33
+ ],
34
+ "ldflags": [
35
+ "-Wl,-rpath,\\$ORIGIN"
36
+ ]
37
+ }],
35
38
  # macOS configuration
36
- ["OS==\"mac\"", {
37
- "include_dirs": [
38
- "/usr/local/include",
39
- "/opt/homebrew/include"
40
- ],
41
- "libraries": [
42
- "-L/usr/local/lib",
43
- "-L/opt/homebrew/lib",
44
- "-lhamlib"
45
- ],
46
- "xcode_settings": {
47
- "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
48
- "CLANG_CXX_LIBRARY": "libc++",
49
- "MACOSX_DEPLOYMENT_TARGET": "10.15"
50
- }
51
- }],
39
+ ["OS==\"mac\"", {
40
+ "include_dirs": [
41
+ "/usr/local/include",
42
+ "/opt/homebrew/include"
43
+ ],
44
+ "libraries": [
45
+ "-L/usr/local/lib",
46
+ "-L/opt/homebrew/lib",
47
+ "-lhamlib"
48
+ ],
49
+ "xcode_settings": {
50
+ "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
51
+ "CLANG_CXX_LIBRARY": "libc++",
52
+ "MACOSX_DEPLOYMENT_TARGET": "10.15"
53
+ },
54
+ "ldflags": [
55
+ "-Wl,-rpath,@loader_path"
56
+ ]
57
+ }],
52
58
  # Windows configuration
53
59
  ["OS==\"win\"", {
54
60
  "defines": [
@@ -149,4 +155,4 @@
149
155
  ]
150
156
  }
151
157
  ]
152
- }
158
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamlib",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Node.js wrapper for hamlib radio control library",
5
5
  "main": "index.js",
6
6
  "module": "lib/index.mjs",
@@ -43,7 +43,9 @@
43
43
  "test": "node test/test_loader.js",
44
44
  "test:network": "node test/test_network.js",
45
45
  "prebuild": "prebuildify --napi --strip",
46
- "prepare": ""
46
+ "prepare": "",
47
+ "bundle": "node scripts/bundle-hamlib.js",
48
+ "prebuild:bundle": "npm run prebuild && npm run bundle"
47
49
  },
48
50
  "dependencies": {
49
51
  "node-addon-api": "^4.3.0",
Binary file