1 | {
|
2 | 'targets': [{
|
3 | 'target_name': 'serialport',
|
4 | 'sources': [
|
5 | 'src/serialport.cpp'
|
6 | ],
|
7 | 'include_dirs': [
|
8 | '<!(node -e "require(\'nan\')")'
|
9 | ],
|
10 | 'conditions': [
|
11 | ['OS=="win"',
|
12 | {
|
13 | 'sources': [
|
14 | 'src/serialport_win.cpp'
|
15 | ],
|
16 | 'msvs_settings': {
|
17 | 'VCCLCompilerTool': {
|
18 | 'ExceptionHandling': '2',
|
19 | 'DisableSpecificWarnings': [ '4530', '4506' ],
|
20 | }
|
21 | }
|
22 | }
|
23 | ],
|
24 | ['OS=="mac"',
|
25 | {
|
26 | 'sources': [
|
27 | 'src/serialport_unix.cpp',
|
28 | 'src/poller.cpp',
|
29 | 'src/darwin_list.cpp'
|
30 | ],
|
31 | 'xcode_settings': {
|
32 | 'OTHER_LDFLAGS': [
|
33 | '-framework CoreFoundation -framework IOKit'
|
34 | ]
|
35 | }
|
36 | }
|
37 | ],
|
38 | ['OS!="win"',
|
39 | {
|
40 | 'sources': [
|
41 | 'src/serialport_unix.cpp',
|
42 | 'src/poller.cpp'
|
43 | ]
|
44 | }
|
45 | ]
|
46 | ]
|
47 | }],
|
48 | }
|