This repository has been archived by the owner on Sep 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
binding.gyp
95 lines (95 loc) · 2.88 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
87
88
89
90
91
92
93
94
95
{
'targets': [
{
'target_name': 'blpapijs',
'sources': [ 'blpapijs.cpp' ],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'conditions': [
['OS=="win"', {
'include_dirs': [
'<(module_root_dir)/deps/blpapi/include-3.8.8.1'
],
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [ '/EHsc' ]
}
},
'conditions': [
['target_arch=="ia32"', {
'libraries': [
'<(module_root_dir)/deps/blpapi/win/blpapi3_32.lib'
],
'copies': [{
'destination': '<(PRODUCT_DIR)',
'files': [
'<(module_root_dir)/deps/blpapi/win/blpapi3_32.dll'
]
}]
}],
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
'msbuild_toolset': 'v120_xp',
'libraries': [
'<(module_root_dir)/deps/blpapi/win/blpapi3_64.lib'
],
'copies': [{
'destination': '<(PRODUCT_DIR)',
'files': [
'<(module_root_dir)/deps/blpapi/win/blpapi3_64.dll'
]
}]
}]
]
}],
['OS=="linux"', {
'include_dirs': [
'<(module_root_dir)/deps/blpapi/include-3.8.8.1'
],
'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"', {
'include_dirs': [
'<(module_root_dir)/deps/blpapi/include-3.8.1.1'
],
'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'
]
}
}]
]
}
]
}