forked from skozin/node-fdb
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbinding.gyp
43 lines (43 loc) · 1.42 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
{
'targets': [
{
'target_name': 'fdblib',
'sources': [
'src/module.cpp',
'src/database.cpp',
'src/transaction.cpp',
'src/error.cpp',
'src/options.cpp',
'src/future.cpp',
'src/utils.cpp'
],
'cflags': ['-std=c++0x'],
'conditions': [
['OS=="linux"', {
'link_settings': { 'libraries': ['-lfdb_c'] },
}],
['OS=="mac"', {
# 'xcode_settings': { 'OTHER_CFLAGS': ['-std=c++0x', '-fsanitize=address'] },
'xcode_settings': { 'OTHER_CFLAGS': ['-std=c++0x'] },
'include_dirs': ['/usr/local/include'],
# 'link_settings': { 'libraries': ['-lfdb_c', '-L/usr/local/lib', '-fsanitize=address'] },
'link_settings': { 'libraries': ['-lfdb_c', '-L/usr/local/lib'] },
}],
['OS=="win"', {
'link_settings': { 'libraries': ['<!(echo %FOUNDATIONDB_INSTALL_PATH%)\\lib\\foundationdb\\fdb_c.lib'] },
'include_dirs': ['<!(echo %FOUNDATIONDB_INSTALL_PATH%)\\include'],
}],
['OS=="freebsd"', {
'include_dirs': ['/usr/local/include'],
'link_settings': { 'libraries': ['-lfdb_c', '-L/usr/local/lib'] },
}],
# [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"',
# {
# 'cflags_cc!': ['-fno-rtti'],
# 'cflags_cc+': ['-frtti'],
# }
# ]
],
}
]
}