Skip to content

Commit bcc8164

Browse files
committed
Add Windows support.
1 parent 64e9e4a commit bcc8164

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

binding.gyp

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'targets': [{
33
'target_name': 'robotjs',
44
'include_dirs': [
5-
'<!(node -e \'require("nan")\')'
5+
'node_modules/nan/'
66
],
77

88
'cflags': [
@@ -44,7 +44,11 @@
4444
'sources': [
4545
'src/xdisplay.c'
4646
]
47-
}]
47+
}],
48+
["OS=='win'", {
49+
'defines': [
50+
'IS_WINDOWS']
51+
}]
4852
],
4953

5054
'sources': [
@@ -55,7 +59,8 @@
5559
'src/keycode.c',
5660
'src/screen.c',
5761
'src/screengrab.c',
62+
'src/snprintf.c',
5863
'src/MMBitmap.c'
5964
]
6065
}]
61-
}
66+
}

0 commit comments

Comments
 (0)