forked from serialport/node-serialport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
82 lines (82 loc) · 2.57 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
'targets': [{
'target_name': 'faster-serial-port',
'win_delay_load_hook': 'true',
'sources': [
'src/Drain.cpp',
'src/Flush.cpp',
'src/WriteBaton.cpp',
'src/UpdateBaton.cpp',
'src/ListBaton.cpp',
'src/BatonBase.cpp',
'src/V8ArgDecoder.cpp',
'src/Util.cpp',
'src/GetBaudRate.cpp',
'src/SetBaton.cpp',
'src/Get.cpp',
'src/OpenBaton.cpp',
'src/ReadBaton.cpp',
'src/Close.cpp',
'src/ConfigureLogging.cpp',
'src/SerialPort.cpp',
'src/EventWatcher.cpp',
'src/BufferedReadBaton.cpp',
],
'include_dirs': [
'<!(node -e "require(\'nan\')")'
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
"OTHER_CFLAGS": ["-mmacosx-version-min=10.9", "-std=c++20", "-stdlib=libc++"],
"OTHER_CPLUSPLUSFLAGS": ["-mmacosx-version-min=10.9", "-std=c++20", "-stdlib=libc++"],
"MACOSX_DEPLOYMENT_TARGET": "10.9"
},
"include_dirs": [
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
],
'sources': [
'src/Darwin.cpp',
'src/Close_darwin.cpp',
'src/Drain_darwin.cpp',
'src/Flush_darwin.cpp',
'src/GetBaudRate_darwin.cpp',
'src/Get_darwin.cpp',
'src/ListBaton_darwin.cpp',
'src/ListUtils_darwin.cpp',
'src/OpenBaton_darwin.cpp',
'src/ReadBaton_darwin.cpp',
'src/SetBaton_darwin.cpp',
'src/UpdateBaton_darwin.cpp',
'src/WriteBaton_darwin.cpp',
'src/EventWatcher_darwin.cpp',
],
}],
['OS=="win"',
{
'sources': [
'src/win.cpp',
'src/Close_win.cpp',
'src/Drain_win.cpp',
'src/Flush_win.cpp',
'src/Get_win.cpp',
'src/UpdateBaton_win.cpp',
'src/WriteBaton_win.cpp',
'src/SetBaton_win.cpp',
'src/ReadBaton_win.cpp',
'src/OpenBaton_win.cpp',
'src/ListBaton_win.cpp',
'src/EventWatcher_win.cpp',
],
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': '2',
'DisableSpecificWarnings': [ '4530', '4506' ],
}
}
}
],
]
}],
}