forked from couchbase/couchnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
95 lines (94 loc) · 2.35 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': 'couchbase_impl',
'defines': ['LCBUV_EMBEDDED_SOURCE'],
'conditions': [
[ 'OS=="win"', {
'variables': {
'couchbase_root%': 'C:/couchbase'
},
'include_dirs': [
'<(couchbase_root)/include/',
],
'link_settings': {
'libraries': [
'-l<(couchbase_root)/lib/libcouchbase.lib',
],
},
'copies': [{
'files': [ '<(couchbase_root)/bin/libcouchbase.dll' ],
'destination': '<(module_root_dir)/build/Release/',
},{
'files': [ '<(couchbase_root)/bin/libcouchbase.dll' ],
'destination': '<(module_root_dir)/build/Debug/',
},],
'configurations': {
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': '2',
'RuntimeLibrary': 0,
},
},
},
},
}],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
},
}],
['OS!="win"', {
'variables' : {
'couchbase_root%' : '""'
},
'link_settings': {
'libraries': [
'$(EXTRA_LDFLAGS)',
'-lcouchbase',
],
},
'cflags': [
'-g',
'-fPIC',
'-Wall',
'-Wextra',
'-Wno-unused-variable',
'-Wno-unused-function',
'$(EXTRA_CFLAGS)',
'$(EXTRA_CPPFLAGS)',
'$(EXTRA_CXXFLAGS)',
],
'cflags_c':[
'-pedantic',
'-std=gnu99',
],
'conditions': [
[ 'couchbase_root!=""', {
'include_dirs': [ '<(couchbase_root)/include' ],
'libraries+': [ '-L<(couchbase_root)/lib' ],
'conditions': [ [ 'OS!="mac"', {'libraries+':['-Wl,-rpath=<(couchbase_root)/lib']} ] ]
}]
],
}]
],
'sources': [
'src/couchbase_impl.cc',
'src/control.cc',
'src/constants.cc',
'src/namemap.cc',
'src/cookie.cc',
'src/commandbase.cc',
'src/commands.cc',
'src/exception.cc',
'src/options.cc',
'src/cas.cc',
'src/uv-plugin-all.c',
'src/valueformat.cc'
],
'include_dirs': [
'./',
'./src/io'
],
}]
}