Skip to content

Commit 27c5f94

Browse files
committed
Merge pull request joeferner#76 from shine-on/master
add support for OpenBSD, version bump
2 parents 72fd703 + 9ec5ad4 commit 27c5f94

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

binding.gyp

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
['OS=="win"', {
99
'javahome%': "<!(echo %JAVA_HOME%)"
1010
}],
11-
['OS=="linux" or OS=="mac" or OS=="freebsd"', {
11+
['OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="openbsd"', {
1212
'javahome%': "<!(echo $JAVA_HOME)"
1313
}],
1414
['OS=="mac"', {
@@ -104,6 +104,31 @@
104104
]
105105
}
106106
],
107+
['OS=="openbsd"',
108+
{
109+
'actions': [
110+
{
111+
'action_name': 'verifyDeps',
112+
'inputs': [
113+
'<(javahome)/jre/lib/<(arch)/server/libjvm.so',
114+
'<(javahome)/include/jni.h',
115+
'<(javahome)/include/openbsd/jni_md.h'
116+
],
117+
'outputs': ['./build/depsVerified'],
118+
'action': [],
119+
'message': 'Verify Deps'
120+
}
121+
],
122+
"include_dirs": [
123+
"<(javahome)/include/openbsd",
124+
],
125+
"libraries": [
126+
"-L<(javahome)/jre/lib/<(arch)/server/",
127+
"-Wl,-rpath,<(javahome)/jre/lib/<(arch)/server/",
128+
"-ljvm"
129+
]
130+
}
131+
],
107132
['OS=="mac" and javaver=="Library"',
108133
{
109134
"include_dirs": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"jvm",
88
"bridge"
99
],
10-
"version": "0.2.5",
10+
"version": "0.2.6",
1111
"engines": {
1212
"node": ">=0.6.0"
1313
},

0 commit comments

Comments
 (0)