forked from Trumid/node-quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
77 lines (77 loc) · 2.14 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
{
'targets': [
{
'target_name': 'node_quickfix',
'product_extension': 'node',
'type': 'shared_library',
'sources': [
'src/Threading.h',
'src/Dispatcher.h',
'src/FixCredentials.h',
'src/FixEvent.h',
'src/FixEventQueue.h',
'src/FixSession.h',
'src/FixSession.cpp',
'src/FixLogon.h',
'src/FixLoginProvider.h',
'src/FixLoginProvider.cpp',
'src/FixLoginResponse.h',
'src/FixLoginResponse.cpp',
'src/FixAcceptor.h',
'src/FixAcceptor.cpp',
'src/FixAcceptorStartWorker.h',
'src/FixAcceptorStartWorker.cpp',
'src/FixAcceptorStopWorker.h',
'src/FixAcceptorStopWorker.cpp',
'src/FixApplication.h',
'src/FixApplication.cpp',
'src/FixConnection.h',
'src/FixConnection.cpp',
'src/FixInitiator.h',
'src/FixInitiator.cpp',
'src/FixInitiatorStartWorker.h',
'src/FixInitiatorStartWorker.cpp',
'src/FixInitiatorStopWorker.h',
'src/FixInitiatorStopWorker.cpp',
'src/FixMessageUtil.h',
'src/FixSendWorker.h',
'src/FixSendWorker.cpp',
'src/node_quickfix.cpp'
],
'link_settings': {
'libraries': [
'-L/usr/lib',
'-L/usr/local/lib',
'-lquickfix',
'-lpthread',
'-lxml2',
'-lz'
]
},
'include_dirs': [
"<!(node -e \"require('nan')\")",
'/usr/local/include',
'/usr/local/include/quickfix'
],
'direct_dependent_settings': {
'include_dirs': ['src']
},
'cflags': [ '-fexceptions', '-std=c++11' ],
'cflags!': ['-fno-exceptions', '-fno-rtti'],
'cflags_cc': [ '-fexceptions' ],
'cflags_cc!': [ '-fno-exceptions', '-fno-rtti' ],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'OTHER_LDFLAGS': [
'-undefined dynamic_lookup'
],
"OTHER_CFLAGS": ["-mmacosx-version-min=10.7", "-stdlib=libc++"]
}
}]
]
}
]
}