Skip to content

Commit 1769b6d

Browse files
authored
Merge pull request #14 from protoCall7/openbsd-support
Adding OpenBSD support
2 parents 77b4ba7 + 37f3ab8 commit 1769b6d

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

binding.gyp

+30
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,36 @@
7171
}
7272
}
7373
],
74+
[
75+
'OS=="openbsd"',
76+
{
77+
"sources": [
78+
"src/linux/idle.cc"
79+
],
80+
"variables": {
81+
"pkg-config": "pkg-config"
82+
},
83+
"sources": [
84+
"src/linux/idle.cc"
85+
],
86+
"include_dirs": [
87+
"/usr/X11R6/include"
88+
],
89+
"direct_dependent_settings": {
90+
"cflags": [
91+
"<!@(<(pkg-config) --cflags x11 xext xscrnsaver)",
92+
],
93+
},
94+
"link_settings": {
95+
"ldflags": [
96+
"<!@(<(pkg-config) --libs-only-other --libs-only-L x11 xext xscrnsaver)",
97+
],
98+
"libraries": [
99+
"<!@(<(pkg-config) --libs-only-l x11 xext xscrnsaver)",
100+
]
101+
}
102+
}
103+
],
74104
[
75105
'OS=="win"',
76106
{

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"linux",
3030
"darwin",
3131
"win32",
32-
"freebsd"
32+
"freebsd",
33+
"openbsd"
3334
],
3435
"engines": {
3536
"node": ">=7.9.0"

0 commit comments

Comments
 (0)