hamlib 0.1.13 → 0.1.14

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
@@ -87,69 +87,66 @@
87
87
  ]
88
88
  }, {
89
89
  # Traditional Windows build with Visual C++
90
- "include_dirs": [
91
- # Try environment variable in different formats
92
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/include')\")",
93
- # Fallback paths
94
- "C:/hamlib/include",
95
- "C:/Program Files/Hamlib/include",
96
- "C:/Program Files (x86)/Hamlib/include"
97
- ],
98
- "library_dirs": [
99
- # Try environment variable paths
100
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/bin')\")",
101
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib')\")",
102
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/x64')\")",
103
- "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/msvc')\")",
104
- # Fallback paths
105
- "C:/hamlib/bin",
106
- "C:/hamlib/lib",
107
- "C:/hamlib/lib/x64",
108
- "C:/hamlib/lib/Release",
109
- "C:/Program Files/Hamlib/bin",
110
- "C:/Program Files/Hamlib/lib",
111
- "C:/Program Files (x86)/Hamlib/bin",
112
- "C:/Program Files (x86)/Hamlib/lib"
113
- ],
114
- "libraries": [
115
- # Try to link against the DLL import library
116
- "libhamlib-4.dll.a",
117
- "hamlib-4.dll.a",
118
- "libhamlib.dll.a",
119
- "hamlib.dll.a",
120
- # Fallback to static libraries if available
121
- "libhamlib-4.lib",
122
- "hamlib-4.lib",
123
- "libhamlib.lib",
124
- "hamlib.lib"
125
- ],
126
- "conditions": [
127
- # Add pthread paths only if PTHREAD_ROOT is set
128
- ["\"<!(node -e \"console.log(process.env.PTHREAD_ROOT || '')\")\"!=\"\"", {
129
- "include_dirs": [
130
- "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32'))\")"
131
- ],
132
- "library_dirs": [
133
- "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib')\")",
134
- "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib/x64')\")"
135
- ],
136
- "libraries": [
137
- "pthreadVC2.lib",
138
- "pthreadVCE2.lib",
139
- "pthreadVSE2.lib",
140
- "pthread.lib"
141
- ]
142
- }]
143
- ],
144
- "msvs_settings": {
145
- "VCCLCompilerTool": {
146
- "ExceptionHandling": 1,
147
- "AdditionalOptions": ["/std:c++14"]
148
- }
149
- }
150
- }]
151
- ]
152
- }]
90
+ "include_dirs": [
91
+ # Try environment variable in different formats
92
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/include')\")",
93
+ # Fallback paths
94
+ "C:/hamlib/include",
95
+ "C:/Program Files/Hamlib/include",
96
+ "C:/Program Files (x86)/Hamlib/include"
97
+ ],
98
+ "library_dirs": [
99
+ # Try environment variable paths
100
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/bin')\")",
101
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib')\")",
102
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/gcc')\")",
103
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/x64')\")",
104
+ "<!(node -e \"console.log((process.env.HAMLIB_ROOT || 'C:/hamlib') + '/lib/msvc')\")",
105
+ # Fallback paths
106
+ "C:/hamlib/bin",
107
+ "C:/hamlib/lib",
108
+ "C:/hamlib/lib/gcc",
109
+ "C:/hamlib/lib/x64",
110
+ "C:/hamlib/lib/Release",
111
+ "C:/Program Files/Hamlib/bin",
112
+ "C:/Program Files/Hamlib/lib",
113
+ "C:/Program Files/Hamlib/lib/gcc",
114
+ "C:/Program Files (x86)/Hamlib/bin",
115
+ "C:/Program Files (x86)/Hamlib/lib"
116
+ ],
117
+ "libraries": [
118
+ # Link against the import library present in hamlib-w64 zip
119
+ "libhamlib-4.lib",
120
+ # Common Win32 system libs used by hamlib
121
+ "Ws2_32.lib",
122
+ "Winmm.lib"
123
+ ],
124
+ "conditions": [
125
+ # Add pthread paths only if PTHREAD_ROOT is set
126
+ ["\"<!(node -e \"console.log(process.env.PTHREAD_ROOT || '')\")\"!=\"\"", {
127
+ "include_dirs": [
128
+ # Headers are placed directly under PTHREAD_ROOT to match this include path
129
+ "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32'))\")"
130
+ ],
131
+ "library_dirs": [
132
+ "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib/x64')\")",
133
+ "<!(node -e \"console.log((process.env.PTHREAD_ROOT || 'C:/pthread-win32') + '/lib')\")"
134
+ ],
135
+ "libraries": [
136
+ # Only link the MSVC import library we download from Sourceware
137
+ "pthreadVC2.lib"
138
+ ]
139
+ }]
140
+ ],
141
+ "msvs_settings": {
142
+ "VCCLCompilerTool": {
143
+ "ExceptionHandling": 1,
144
+ "AdditionalOptions": ["/std:c++14"]
145
+ }
146
+ }
147
+ }]
148
+ ]
149
+ }]
153
150
  ]
154
151
  }]
155
152
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamlib",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Node.js wrapper for hamlib radio control library",
5
5
  "main": "index.js",
6
6
  "module": "lib/index.mjs",