forked from atom/node-nslog
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
44 lines (44 loc) · 948 Bytes
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
'target_defaults': {
'conditions': [
['OS=="win"', {
'msvs_disabled_warnings': [
4530, # C++ exception handler used, but unwind semantics are not enabled
4506, # no definition for inline function
],
}],
],
},
'targets': [
{
'target_name': 'nslog',
'include_dirs': [ '<!(node -e "require(\'nan\')")' ],
'sources': [
'src/main.cc'
],
'conditions': [
['OS=="mac"', {
'sources': [
'src/nslog_mac.mm',
],
'link_settings': {
'libraries': [
'Foundation.framework',
'AppKit.framework',
],
}
}],
['OS=="win"', {
'sources': [
'src/nslog_win.cc',
],
}],
['OS=="linux"', {
'sources': [
'src/nslog_linux.cc',
],
}],
],
}
]
}