forked from foxt/node-system-icon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
59 lines (59 loc) · 1.26 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
'target_defaults': {
'conditions': [
['OS=="win"', {
'defines': [
'_WIN32_WINNT=0x0600',
],
}],
],
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_ENABLE_OBJC_ARC': 'YES',
'GCC_OPTIMIZATION_LEVEL': '3',
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
'GCC_WARN_SHADOW': 'YES',
'GCC_WARN_UNUSED_VARIABLE': 'YES',
'WARNING_CFLAGS': ['-Wall'],
},
},
'targets': [
{
'target_name': 'addon',
'include_dirs': [
'<!(node -e "require(\'nan\')")',
],
'sources': [
'addon.cpp',
],
'conditions': [
['OS=="mac"', {
'link_settings': {
'libraries': [
'-framework AppKit',
],
},
'sources': [
'system_icon_mac.mm',
],
}],
['OS=="win"', {
'link_settings': {
'libraries': [
'Gdiplus.lib',
],
},
'sources': [
'system_icon_win.cpp',
],
}],
['OS!="mac" and OS!="win"', {
'sources': [
'system_icon.cpp',
],
}],
],
},
],
}