-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbinding.gyp
86 lines (86 loc) · 2.74 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
83
84
85
86
{
'target_defaults': {
'conditions': [
['OS=="linux"', {
'cflags_cc!': [ '-fno-exceptions', '-fno-rtti' ],
'defines': [ '_REENTRANT', 'ACE_HAS_AIO_CALLS', '_GNU_SOURCE',
'ACE_HAS_EXCEPTIONS', '__ACE_INLINE__' ],
}],
['OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeTypeInfo': 'true',
},
},
'configurations': {
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': '3',
'ExceptionHandling': '1',
},
},
},
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': '2',
'ExceptionHandling': '1',
},
},
},
},
}],
],
},
'targets': [
{
'target_name': 'node_opendds',
'sources': [ 'src/node-opendds.cpp',
'src/NodeDRListener.cpp',
'src/NodeValueReader.cpp',
'src/NodeValueWriter.cpp' ],
'include_dirs': [ "<!(node -e \"require('nan')\")",
'$(ACE_ROOT)', '$(TAO_ROOT)', '$(DDS_ROOT)',
"<!(node build.js includes)" ],
'conditions': [
['OS in "linux mac"', {
'link_settings': {
'libraries': [ '-lOpenDDS_Dcps',
'-lTAO_PortableServer',
'-lTAO_AnyTypeCode',
'-lTAO_Valuetype',
'-lTAO',
'-lACE' ],
'ldflags': [ '-L$(ACE_ROOT)/lib', '-L$(DDS_ROOT)/lib',
"<!(node build.js libpaths)" ],
},
}],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_LDFLAGS': ['-L$(ACE_ROOT)/lib', '-L$(DDS_ROOT)/lib',
'-rpath $(ACE_ROOT)/lib', '-rpath $(DDS_ROOT)/lib' ],
}
}],
['OS=="win"', {
'msvs_settings' : {
'VCLinkerTool': {
'AdditionalLibraryDirectories': [ '$(ACE_ROOT)/lib',
'$(DDS_ROOT)/lib' ],
},
},
'link_settings': {
'libraries': [ 'OpenDDS_Dcps<(lib_suffix)',
'TAO_PortableServer<(lib_suffix)',
'TAO_AnyTypeCode<(lib_suffix)',
'TAO_Valuetype<(lib_suffix)',
'TAO<(lib_suffix)',
'ACE<(lib_suffix)' ],
},
}]
],
}
]
}