forked from bloomberg/blpapi-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
75 lines (75 loc) · 2.16 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
{
'targets': [
{
'target_name': 'blpapijs',
'sources': [ 'blpapijs.cpp' ],
'include_dirs': [
'<(module_root_dir)/deps/blpapi/include'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'conditions': [
['OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [ '/EHsc' ]
}
},
'conditions': [
['target_arch=="ia32"', {
'libraries': [
'<(module_root_dir)/deps/blpapi/win/blpapi3_32.lib'
]
}],
['target_arch=="x64"', {
'libraries': [
'<(module_root_dir)/deps/blpapi/win/blpapi3_64.lib'
]
}]
]
}],
['OS=="linux"', {
'ldflags': [
'-Wl,-R<(module_root_dir)/deps/blpapi/linux',
'-L<(module_root_dir)/deps/blpapi/linux'
],
'conditions': [
['target_arch=="ia32"', {
'libraries': [ '-lblpapi3_32' ]
}],
['target_arch=="x64"', {
'libraries': [ '-lblpapi3_64' ]
}]
]
}],
['OS=="mac"', {
'ldflags': [
'-Wl,-rpath,<(module_root_dir)/deps/blpapi/osx',
'-L<(module_root_dir)/deps/blpapi/osx'
],
'conditions': [
['target_arch=="ia32"', {
'libraries': [ '-lblpapi3_32' ],
'xcode_settings': { 'ARCHS': [ 'i386' ] }
}],
['target_arch=="x64"', {
'libraries': [ '-lblpapi3_64' ],
'xcode_settings': { 'ARCHS': [ 'x86_64' ] }
}]
],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'NO',
'INSTALL_PATH': '@rpath',
'LD_DYLIB_INSTALL_NAME': '',
'OTHER_LDFLAGS': [
'-Wl,-search_paths_first',
'-Wl,-rpath,<(module_root_dir)/deps/blpapi/osx',
'-L<(module_root_dir)/deps/blpapi/osx'
]
}
}]
]
}
]
}