forked from Softmotions/ejdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
82 lines (78 loc) · 2.45 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
{
'variables' : {
},
'includes': ['configure.gypi'],
'target_defaults': {
'configurations': {
'Debug': {
'defines': [ '_DEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary':'MultiThreadedDebugDLL'
}
},
},
'Release':{
'defines': [ 'NDEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary':'MultiThreadedDLL'
}
}
}
},
'conditions': [
['OS == "win"', {
'defines': [
'_UNICODE',
],
'libraries': [
'-l<(EJDB_HOME)/lib/tcejdbdll.lib'
],
}, {
'defines': [
'_LARGEFILE_SOURCE',
'_FILE_OFFSET_BITS=64',
'_GNU_SOURCE',
'_UNICODE',
'_GLIBCXX_PERMIT_BACKWARD_HASH',
],
}],
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags': [ '-Wall', '-pedantic', '-fsigned-char', '-pthread', '-Wno-variadic-macros'],
'cflags_cc!' : [ '-fno-exceptions' ],
'libraries' : [
'-L../tcejdb',
'-Wl,-Bstatic -ltcejdb',
'-Wl,-Bdynamic',
'-lz -lpthread -lm -lc'
]
}],
[ 'OS=="mac"', {
'defines': ['_DARWIN_USE_64_BIT_INODE=1'],
'cflags_cc!' : [ '-fno-exceptions' ],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS':'YES',
'OTHER_CFLAGS': [
'-fsigned-char', '-pthread', '-Wno-variadic-macros', '-fexceptions'
],
'OTHER_LDFLAGS': [
'-Wl,-search_paths_first',
'-L./tcejdb/static',
'-lstcejdb -lz -lpthread -lm -lc'
]
}
}]
],
'include_dirs' : ['tcejdb'],
},
'targets' : [
{
'target_name' : 'ejdb_native',
'sources' : [
'node/ejdb_native.cc',
'node/ejdb_logging.cc'
]
},
]
}