forked from couchbase/couchnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
86 lines (86 loc) · 1.91 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
{
'targets': [{
'target_name': 'couchbase_impl',
'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)/lib/libcouchbase.dll' ],
'destination': '<(module_root_dir)/build/Release/',
},],
'configurations': {
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': '2',
'RuntimeLibrary': 0,
},
},
},
},
}],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
},
}],
['OS!="win"', {
'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',
],
'cflags!': [
'-fno-exceptions',
],
'cflags_cc!': [
'-fno-exceptions',
],
}],
],
'sources': [
'src/couchbase_impl.cc',
'src/namemap.cc',
'src/notify.cc',
'src/operations.cc',
'src/cas.cc',
'io/common.c',
'io/socket.c',
'io/read.c',
'io/write.c',
'io/timer.c',
'io/plugin-libuv.c',
'io/util/lcb_luv_yolog.c',
'io/util/hexdump.c',
],
'include_dirs': [
'./',
],
}]
}