couchbase 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/deps/lcb/CMakeLists.txt +1 -1
  2. package/deps/lcb/CONTRIBUTING.md +1 -1
  3. package/deps/lcb/README.markdown +2 -2
  4. package/deps/lcb/RELEASE_NOTES.markdown +72 -17
  5. package/deps/lcb/cmake/Modules/GetVersionInfo.cmake +1 -1
  6. package/deps/lcb/contrib/cbsasl/src/scram-sha/scram_utils.cc +22 -26
  7. package/deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp +20 -6
  8. package/deps/lcb/doc/Doxyfile +1 -1
  9. package/deps/lcb/example/minimal/query.c +9 -7
  10. package/deps/lcb/gyp_config/common/libcouchbase/configuration.h +3 -3
  11. package/deps/lcb/include/libcouchbase/couchbase.h +3 -1
  12. package/deps/lcb/include/libcouchbase/error.h +2 -0
  13. package/deps/lcb/include/libcouchbase/ixmgmt.h +15 -10
  14. package/deps/lcb/include/libcouchbase/tracing.h +2 -2
  15. package/deps/lcb/include/memcached/protocol_binary.h +21 -0
  16. package/deps/lcb/libcouchbase.gyp +347 -349
  17. package/deps/lcb/packaging/deb/control +1 -1
  18. package/deps/lcb/src/analytics/analytics_handle.cc +7 -5
  19. package/deps/lcb/src/analytics/analytics_handle.hh +28 -0
  20. package/deps/lcb/src/capi/cmd_counter.hh +6 -0
  21. package/deps/lcb/src/capi/cmd_exists.hh +6 -0
  22. package/deps/lcb/src/capi/cmd_get.hh +5 -0
  23. package/deps/lcb/src/capi/cmd_get_replica.hh +6 -0
  24. package/deps/lcb/src/capi/cmd_remove.hh +6 -0
  25. package/deps/lcb/src/capi/cmd_search.hh +6 -0
  26. package/deps/lcb/src/capi/cmd_store.hh +16 -21
  27. package/deps/lcb/src/capi/cmd_subdoc.hh +18 -0
  28. package/deps/lcb/src/capi/cmd_touch.hh +6 -0
  29. package/deps/lcb/src/capi/cmd_unlock.hh +6 -0
  30. package/deps/lcb/src/capi/cmd_view.hh +6 -0
  31. package/deps/lcb/src/capi/collection_qualifier.hh +2 -2
  32. package/deps/lcb/src/cntl.cc +42 -8
  33. package/deps/lcb/src/dns-srv.cc +5 -3
  34. package/deps/lcb/src/errmap.cc +5 -9
  35. package/deps/lcb/src/errmap.h +7 -3
  36. package/deps/lcb/src/handler.cc +24 -18
  37. package/deps/lcb/src/lcbio/ctx.cc +4 -2
  38. package/deps/lcb/src/mcserver/mcserver.cc +8 -5
  39. package/deps/lcb/src/mcserver/negotiate.cc +39 -17
  40. package/deps/lcb/src/n1ql/ixmgmt.cc +1 -2
  41. package/deps/lcb/src/n1ql/query_handle.cc +27 -16
  42. package/deps/lcb/src/n1ql/query_handle.hh +27 -1
  43. package/deps/lcb/src/operations/counter.cc +1 -1
  44. package/deps/lcb/src/operations/exists.cc +2 -2
  45. package/deps/lcb/src/operations/get.cc +2 -2
  46. package/deps/lcb/src/operations/observe.cc +1 -1
  47. package/deps/lcb/src/operations/remove.cc +1 -1
  48. package/deps/lcb/src/operations/store.cc +1 -1
  49. package/deps/lcb/src/operations/subdoc.cc +1 -2
  50. package/deps/lcb/src/operations/touch.cc +2 -2
  51. package/deps/lcb/src/operations/unlock.cc +2 -2
  52. package/deps/lcb/src/search/search_handle.cc +27 -8
  53. package/deps/lcb/src/search/search_handle.hh +29 -0
  54. package/deps/lcb/src/ssl/ssl_common.c +6 -7
  55. package/deps/lcb/src/tracing/span.cc +43 -10
  56. package/deps/lcb/src/tracing/tracing-internal.h +105 -93
  57. package/deps/lcb/src/views/view_handle.cc +13 -5
  58. package/deps/lcb/src/views/view_handle.hh +29 -0
  59. package/deps/lcb/tests/CMakeLists.txt +21 -0
  60. package/deps/lcb/tests/basic/t_ctlcodes.cc +24 -3
  61. package/deps/lcb/tests/basic/t_jsparse.cc +8 -0
  62. package/deps/lcb/tests/iotests/mock-environment.cc +15 -0
  63. package/deps/lcb/tests/iotests/mock-environment.h +47 -0
  64. package/deps/lcb/tests/iotests/mock-unit-test.cc +96 -5
  65. package/deps/lcb/tests/iotests/mock-unit-test.h +32 -0
  66. package/deps/lcb/tests/iotests/t_collections.cc +1 -1
  67. package/deps/lcb/tests/iotests/t_confmon.cc +4 -2
  68. package/deps/lcb/tests/iotests/t_get.cc +14 -4
  69. package/deps/lcb/tests/iotests/t_n1ql.cc +17 -1
  70. package/deps/lcb/tests/iotests/t_views.cc +1 -0
  71. package/deps/lcb/tests/iotests/testutil.cc +168 -0
  72. package/deps/lcb/tests/iotests/testutil.h +111 -0
  73. package/deps/lcb/tests/mocksupport/procutil.c +32 -28
  74. package/deps/lcb/tests/mocksupport/server.c +0 -1
  75. package/deps/lcb/tools/cbc.cc +7 -0
  76. package/dist/analyticsindexmanager.js +3 -3
  77. package/dist/binding.d.ts +2 -0
  78. package/dist/bindingutilities.js +4 -0
  79. package/dist/bucketmanager.d.ts +31 -1
  80. package/dist/bucketmanager.js +28 -2
  81. package/dist/collection.js +2 -2
  82. package/dist/collectionmanager.js +2 -2
  83. package/dist/connection.js +3 -0
  84. package/dist/errors.d.ts +18 -0
  85. package/dist/errors.js +26 -2
  86. package/dist/eventingfunctionmanager.js +6 -6
  87. package/dist/queryindexmanager.js +3 -3
  88. package/dist/searchexecutor.js +3 -0
  89. package/dist/searchindexmanager.js +1 -1
  90. package/dist/searchquery.d.ts +17 -0
  91. package/dist/searchquery.js +22 -1
  92. package/dist/searchtypes.d.ts +7 -2
  93. package/dist/searchtypes.js +2 -2
  94. package/dist/usermanager.js +1 -1
  95. package/dist/viewindexmanager.js +1 -1
  96. package/package.json +1 -1
  97. package/src/connection.cpp +2 -0
  98. package/src/constants.cpp +2 -0
  99. package/src/instance.cpp +8 -1
  100. package/src/instance.h +1 -0
@@ -1,368 +1,366 @@
1
1
  {
2
- 'variables': {
3
- 'target_arch%': 'ia32', # default for node v0.6.x
4
- 'node_major_version': '<!(node -e "console.log(process.versions.node.split(\'.\')[0])")'
5
- },
6
-
7
- 'target_defaults': {
8
- 'default_configuration': 'Debug',
9
- 'configurations': {
10
- 'Debug': {
11
- 'defines': [ 'DEBUG', '_DEBUG' ],
12
- 'msvs_settings': {
13
- 'VCCLCompilerTool': {
14
- 'RuntimeLibrary': 1, # static debug
15
- },
16
- },
17
- },
18
- 'Release': {
19
- 'defines': [ 'NDEBUG' ],
20
- 'msvs_settings': {
21
- 'VCCLCompilerTool': {
22
- 'RuntimeLibrary': 0, # static release
23
- },
24
- },
25
- }
26
- },
27
- 'msvs_settings': {
28
- 'VCLinkerTool': {
29
- 'GenerateDebugInformation': 'true',
30
- },
2
+ 'variables': {
3
+ 'target_arch%': 'ia32', # default for node v0.6.x
4
+ 'node_major_version': '<!(node -e "console.log(process.versions.node.split(\'.\')[0])")'
31
5
  },
32
6
 
33
- 'defines': [
34
- 'LIBCOUCHBASE_INTERNAL=1',
35
- 'LCB_STATIC_SNAPPY=1',
36
- 'LCB_LIBDIR=""',
37
- 'LCB_TRACING'
38
- ],
7
+ 'target_defaults': {
8
+ 'default_configuration': 'Debug',
9
+ 'configurations': {
10
+ 'Debug': {
11
+ 'defines': ['DEBUG', '_DEBUG'],
12
+ 'msvs_settings': {
13
+ 'VCCLCompilerTool': {
14
+ 'RuntimeLibrary': 1, # static debug
15
+ },
16
+ },
17
+ },
18
+ 'Release': {
19
+ 'defines': ['NDEBUG'],
20
+ 'msvs_settings': {
21
+ 'VCCLCompilerTool': {
22
+ 'RuntimeLibrary': 0, # static release
23
+ },
24
+ },
25
+ }
26
+ },
39
27
 
40
- 'include_dirs': [
41
- 'include',
42
- 'src',
43
- 'contrib',
44
- 'contrib/cbsasl/include',
45
- 'contrib/snappy',
46
- 'contrib/HdrHistogram_c/src',
47
- 'gyp_config/common',
48
- 'gyp_config/<(OS)/<(target_arch)'
49
- ],
28
+ 'defines': [
29
+ 'LIBCOUCHBASE_INTERNAL=1',
30
+ 'LCB_STATIC_SNAPPY=1',
31
+ 'LCB_LIBDIR=""',
32
+ 'LCB_TRACING'
33
+ ],
50
34
 
51
- 'conditions': [
52
- ['OS!="win"', {
53
- "link_settings": {
54
- "libraries": [
55
- "-lresolv"
56
- ]
57
- },
58
- }],
59
- ['OS=="win"', {
60
35
  'include_dirs': [
61
- '<(node_root_dir)/deps/openssl/openssl/include',
62
- './',
63
- 'contrib/win32-defs'
36
+ 'include',
37
+ 'src',
38
+ 'contrib',
39
+ 'contrib/cbsasl/include',
40
+ 'contrib/snappy',
41
+ 'contrib/HdrHistogram_c/src',
42
+ 'gyp_config/common',
43
+ 'gyp_config/<(OS)/<(target_arch)'
64
44
  ],
65
- "link_settings": {
66
- "libraries": [
67
- "-lws2_32.lib",
68
- "-ldnsapi.lib"
69
- ]
70
- }
71
- }],
72
- ]
73
- },
74
45
 
75
- 'targets': [
76
- # libcbsasl
77
- {
78
- 'target_name': 'cbsasl',
79
- 'product_prefix': 'lib',
80
- 'type': 'static_library',
81
- 'defines': [
82
- 'BUILDING_CBSASL'
83
- ],
84
- 'sources': [
85
- 'contrib/cbsasl/src/client.c',
86
- 'contrib/cbsasl/src/common.c',
87
- 'contrib/cbsasl/src/hash.c',
88
- 'contrib/cbsasl/src/cram-md5/hmac.c',
89
- 'contrib/cbsasl/src/cram-md5/md5.c',
90
- 'contrib/cbsasl/src/scram-sha/scram_utils.cc'
91
- ],
92
- 'conditions': [
93
- ['OS=="win" and node_major_version<6', {
94
- 'defines': [
95
- 'LCB_NO_SSL'
96
- ]
97
- }]
98
- ]
46
+ 'conditions': [
47
+ ['OS!="win"', {
48
+ "link_settings": {
49
+ "libraries": [
50
+ "-lresolv"
51
+ ]
52
+ },
53
+ }],
54
+ ['OS=="win"', {
55
+ 'include_dirs': [
56
+ '<(node_root_dir)/deps/openssl/openssl/include',
57
+ './',
58
+ 'contrib/win32-defs'
59
+ ],
60
+ "link_settings": {
61
+ "libraries": [
62
+ "-lws2_32.lib",
63
+ "-ldnsapi.lib"
64
+ ]
65
+ }
66
+ }],
67
+ ]
99
68
  },
100
69
 
101
- # libcjson
102
- {
103
- 'target_name': 'cjson',
104
- 'product_prefix': 'lib',
105
- 'type': 'static_library',
106
- 'sources': [
107
- 'contrib/cJSON/cJSON.c'
108
- ]
109
- },
70
+ 'targets': [
71
+ # libcbsasl
72
+ {
73
+ 'target_name': 'cbsasl',
74
+ 'product_prefix': 'lib',
75
+ 'type': 'static_library',
76
+ 'defines': [
77
+ 'BUILDING_CBSASL'
78
+ ],
79
+ 'sources': [
80
+ 'contrib/cbsasl/src/client.c',
81
+ 'contrib/cbsasl/src/common.c',
82
+ 'contrib/cbsasl/src/hash.c',
83
+ 'contrib/cbsasl/src/cram-md5/hmac.c',
84
+ 'contrib/cbsasl/src/cram-md5/md5.c',
85
+ 'contrib/cbsasl/src/scram-sha/scram_utils.cc'
86
+ ],
87
+ 'conditions': [
88
+ ['OS=="win" and node_major_version<6', {
89
+ 'defines': [
90
+ 'LCB_NO_SSL'
91
+ ]
92
+ }]
93
+ ]
94
+ },
110
95
 
111
- #libhttpparser
112
- {
113
- 'target_name': 'httpparser',
114
- 'product_prefix': 'lib',
115
- 'type': 'static_library',
116
- 'include_dirs': [
117
- './'
118
- ],
119
- 'sources': [
120
- 'contrib/http_parser/http_parser.c'
121
- ]
122
- },
96
+ # libcjson
97
+ {
98
+ 'target_name': 'cjson',
99
+ 'product_prefix': 'lib',
100
+ 'type': 'static_library',
101
+ 'sources': [
102
+ 'contrib/cJSON/cJSON.c'
103
+ ]
104
+ },
123
105
 
124
- #libjsoncpp
125
- {
126
- 'target_name': 'jsoncpp',
127
- 'product_prefix': 'lib',
128
- 'type': 'static_library',
129
- 'sources': [
130
- 'contrib/lcb-jsoncpp/lcb-jsoncpp.cpp'
131
- ],
132
- },
106
+ # libhttpparser
107
+ {
108
+ 'target_name': 'httpparser',
109
+ 'product_prefix': 'lib',
110
+ 'type': 'static_library',
111
+ 'include_dirs': [
112
+ './'
113
+ ],
114
+ 'sources': [
115
+ 'contrib/http_parser/http_parser.c'
116
+ ]
117
+ },
133
118
 
134
- #libsnappy
135
- {
136
- 'target_name': 'snappy',
137
- 'product_prefix': 'lib',
138
- 'type': 'static_library',
139
- 'sources': [
140
- 'contrib/snappy/snappy-c.cc',
141
- 'contrib/snappy/snappy-sinksource.cc',
142
- 'contrib/snappy/snappy-stubs-internal.cc',
143
- 'contrib/snappy/snappy.cc',
144
- ],
145
- 'cflags': [
146
- '-Wno-sign-compare'
147
- ],
148
- 'xcode_settings': {
149
- 'WARNING_CFLAGS': [
150
- '-Wno-sign-compare'
151
- ]
152
- }
153
- },
119
+ # libjsoncpp
120
+ {
121
+ 'target_name': 'jsoncpp',
122
+ 'product_prefix': 'lib',
123
+ 'type': 'static_library',
124
+ 'xcode_settings': {
125
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
126
+ },
127
+ 'cflags!': [
128
+ '-fno-exceptions'
129
+ ],
130
+ 'cflags_cc!': [
131
+ '-fno-exceptions'
132
+ ],
133
+ 'sources': [
134
+ 'contrib/lcb-jsoncpp/lcb-jsoncpp.cpp'
135
+ ],
136
+ },
154
137
 
155
- #HdrHistogram_c
156
- {
157
- 'target_name': 'HdrHistogram_c',
158
- 'product_prefix': 'lib',
159
- 'type': 'static_library',
160
- 'sources': [
161
- 'contrib/HdrHistogram_c/src/hdr_encoding.c',
162
- 'contrib/HdrHistogram_c/src/hdr_histogram_log_no_op.c',
163
- 'contrib/HdrHistogram_c/src/hdr_histogram_log.c',
164
- 'contrib/HdrHistogram_c/src/hdr_histogram.c',
165
- 'contrib/HdrHistogram_c/src/hdr_interval_recorder.c',
166
- 'contrib/HdrHistogram_c/src/hdr_thread.c',
167
- 'contrib/HdrHistogram_c/src/hdr_time.c',
168
- 'contrib/HdrHistogram_c/src/hdr_writer_reader_phaser.c',
169
- ],
170
- },
138
+ # libsnappy
139
+ {
140
+ 'target_name': 'snappy',
141
+ 'product_prefix': 'lib',
142
+ 'type': 'static_library',
143
+ 'sources': [
144
+ 'contrib/snappy/snappy-c.cc',
145
+ 'contrib/snappy/snappy-sinksource.cc',
146
+ 'contrib/snappy/snappy-stubs-internal.cc',
147
+ 'contrib/snappy/snappy.cc',
148
+ ],
149
+ },
171
150
 
172
- #libcouchbase
173
- {
174
- 'target_name': 'couchbase',
175
- 'product_prefix': 'lib',
176
- 'type': 'static_library',
177
- 'defines': [
178
- 'CBSASL_STATIC'
179
- ],
180
- 'cflags': [
181
- '-fno-strict-aliasing',
182
- '-Wno-unused-function',
183
- '-Wno-missing-braces',
184
- '-Wno-missing-field-initializers'
185
- ],
186
- 'cflags_c': [
187
- '-std=c99'
188
- ],
189
- 'cflags!': [
190
- '-fno-exceptions'
191
- ],
192
- 'cflags_cc!': [
193
- '-fno-exceptions'
194
- ],
195
- 'xcode_settings': {
196
- 'WARNING_CFLAGS': [
197
- '-fno-strict-aliasing',
198
- '-Wno-unused-function',
199
- '-Wno-missing-braces',
200
- '-Wno-missing-field-initializers'
201
- ],
202
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
203
- },
204
- 'include_dirs': [
205
- './'
206
- ],
207
- 'sources': [
208
- 'src/analytics/analytics_handle.cc',
209
- 'src/analytics/analytics.cc',
210
- 'src/bucketconfig/bc_cccp.cc',
211
- 'src/bucketconfig/bc_file.cc',
212
- 'src/bucketconfig/bc_http.cc',
213
- 'src/bucketconfig/bc_static.cc',
214
- 'src/bucketconfig/confmon.cc',
215
- 'src/capi/cmd_analytics.cc',
216
- 'src/capi/cmd_query.cc',
217
- 'src/capi/cmd_search.cc',
218
- 'src/capi/cmd_view.cc',
219
- 'src/docreq/docreq.cc',
220
- 'src/http/http.cc',
221
- 'src/http/http_io.cc',
222
- 'src/jsparse/parser.cc',
223
- 'src/lcbht/lcbht.cc',
224
- 'src/lcbio/connect.cc',
225
- 'src/lcbio/ctx.cc',
226
- 'src/lcbio/iotable.c',
227
- 'src/lcbio/ioutils.cc',
228
- 'src/lcbio/manager.cc',
229
- 'src/lcbio/protoctx.cc',
230
- 'src/lcbio/timer.cc',
231
- 'src/metrics/caching_meter.cc',
232
- 'src/metrics/logging_meter.cc',
233
- 'src/metrics/metrics-internal.cc',
234
- 'src/metrics/metrics.cc',
235
- 'src/mc/compress.cc',
236
- 'src/mc/forward.c',
237
- 'src/mc/mcreq.c',
238
- 'src/mcserver/mcserver.cc',
239
- 'src/mcserver/negotiate.cc',
240
- 'src/n1ql/ixmgmt.cc',
241
- 'src/n1ql/n1ql-internal.cc',
242
- 'src/n1ql/n1ql.cc',
243
- 'src/n1ql/query_handle.cc',
244
- 'src/n1ql/query_utils.cc',
245
- 'src/netbuf/netbuf.c',
246
- 'src/operations/cbflush.cc',
247
- 'src/operations/counter.cc',
248
- 'src/operations/durability-seqno.cc',
249
- 'src/operations/durability.cc',
250
- 'src/operations/exists.cc',
251
- 'src/operations/get_replica.cc',
252
- 'src/operations/get.cc',
253
- 'src/operations/observe-seqno.cc',
254
- 'src/operations/observe.cc',
255
- 'src/operations/pktfwd.cc',
256
- 'src/operations/ping.cc',
257
- 'src/operations/remove.cc',
258
- 'src/operations/stats.cc',
259
- 'src/operations/store.cc',
260
- 'src/operations/subdoc.cc',
261
- 'src/operations/touch.cc',
262
- 'src/operations/unlock.cc',
263
- 'src/rdb/bigalloc.c',
264
- 'src/rdb/chunkalloc.c',
265
- 'src/rdb/libcalloc.c',
266
- 'src/rdb/rope.c',
267
- 'src/search/search_handle.cc',
268
- 'src/search/search.cc',
269
- 'src/strcodecs/base64.cc',
270
- 'src/tracing/span.cc',
271
- 'src/tracing/threshold_logging_tracer.cc',
272
- 'src/tracing/tracer.cc',
273
- 'src/vbucket/ketama.c',
274
- 'src/vbucket/vbucket.c',
275
- 'src/views/view_handle.cc',
276
- 'src/views/view.cc',
277
- 'src/auth.cc',
278
- 'src/bootstrap.cc',
279
- 'src/callbacks.c',
280
- 'src/cntl.cc',
281
- 'src/collections.cc',
282
- 'src/connspec.cc',
283
- 'src/crypto.cc',
284
- 'src/defer.cc',
285
- 'src/dns-srv.cc',
286
- 'src/dump.cc',
287
- 'src/errmap.cc',
288
- 'src/getconfig.cc',
289
- 'src/gethrtime.c',
290
- 'src/handler.cc',
291
- 'src/hdr_timings.c',
292
- 'src/hostlist.cc',
293
- 'src/instance.cc',
294
- 'src/iofactory.c',
295
- 'src/list.c',
296
- 'src/logging.c',
297
- 'src/newconfig.cc',
298
- 'src/nodeinfo.cc',
299
- 'src/iometrics.cc',
300
- 'src/retrychk.cc',
301
- 'src/retryq.cc',
302
- 'src/ringbuffer.c',
303
- 'src/rnd.cc',
304
- 'src/settings.cc',
305
- # 'src/timings.c', we use hdr_timings.c
306
- 'src/utilities.cc',
307
- 'src/wait.cc',
151
+ # HdrHistogram_c
152
+ {
153
+ 'target_name': 'HdrHistogram_c',
154
+ 'product_prefix': 'lib',
155
+ 'type': 'static_library',
156
+ 'sources': [
157
+ 'contrib/HdrHistogram_c/src/hdr_encoding.c',
158
+ 'contrib/HdrHistogram_c/src/hdr_histogram_log_no_op.c',
159
+ 'contrib/HdrHistogram_c/src/hdr_histogram_log.c',
160
+ 'contrib/HdrHistogram_c/src/hdr_histogram.c',
161
+ 'contrib/HdrHistogram_c/src/hdr_interval_recorder.c',
162
+ 'contrib/HdrHistogram_c/src/hdr_thread.c',
163
+ 'contrib/HdrHistogram_c/src/hdr_time.c',
164
+ 'contrib/HdrHistogram_c/src/hdr_writer_reader_phaser.c',
165
+ ],
166
+ },
308
167
 
309
- 'plugins/io/select/plugin-select.c'
310
- ],
311
- 'dependencies': [
312
- 'httpparser',
313
- 'cjson',
314
- 'cbsasl',
315
- 'snappy',
316
- 'jsoncpp',
317
- 'HdrHistogram_c'
318
- ],
319
- 'copies': [{
320
- 'files': [ 'plugins/io/libuv/libuv_io_opts.h' ],
321
- 'destination': 'include/libcouchbase/',
322
- }, {
323
- 'files': [
324
- 'plugins/io/libuv/plugin-libuv.c',
325
- 'plugins/io/libuv/plugin-internal.h',
326
- 'plugins/io/libuv/libuv_compat.h'
327
- ],
328
- 'destination': 'include/libcouchbase/plugins/io/libuv/'
329
- }],
330
- 'direct_dependent_settings': {
331
- 'include_dirs': [
332
- 'include',
333
- './',
334
- 'gyp_config/common',
335
- 'gyp_config/<(OS)/<(target_arch)'
336
- ],
337
- },
338
- 'conditions': [
339
- ['OS=="win"', {
340
- 'sources': [
341
- 'plugins/io/iocp/iocp_iops.c',
342
- 'plugins/io/iocp/iocp_iops.h',
343
- 'plugins/io/iocp/iocp_loop.c',
344
- 'plugins/io/iocp/iocp_timer.c',
345
- 'plugins/io/iocp/iocp_util.c'
346
- ],
347
- 'direct_dependent_settings': {
168
+ # libcouchbase
169
+ {
170
+ 'target_name': 'couchbase',
171
+ 'product_prefix': 'lib',
172
+ 'type': 'static_library',
173
+ 'cflags': [
174
+ '-fno-strict-aliasing',
175
+ '-Wno-unused-function',
176
+ '-Wno-missing-braces',
177
+ '-Wno-missing-field-initializers',
178
+ '-Wno-sign-compare',
179
+ ],
180
+ 'cflags_c': [
181
+ '-std=c99'
182
+ ],
183
+ 'xcode_settings': {
184
+ 'WARNING_CFLAGS': [
185
+ '-fno-strict-aliasing',
186
+ '-Wno-unused-function',
187
+ '-Wno-missing-braces',
188
+ '-Wno-missing-field-initializers',
189
+ '-Wno-sign-compare'
190
+ ],
191
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
192
+ },
193
+ 'cflags!': [
194
+ '-fno-exceptions'
195
+ ],
196
+ 'cflags_cc!': [
197
+ '-fno-exceptions'
198
+ ],
199
+ 'defines': [
200
+ 'CBSASL_STATIC'
201
+ ],
348
202
  'include_dirs': [
349
- 'plugins/io/libuv'
203
+ './'
350
204
  ],
351
- },
352
- }],
353
- ['OS!="win" or node_major_version>=6', {
354
- 'sources': [
355
- 'src/ssl/ssl_c.c',
356
- 'src/ssl/ssl_common.c',
357
- 'src/ssl/ssl_e.c',
358
- ]
359
- }],
360
- ['OS=="win" and node_major_version<6', {
361
- 'defines': [
362
- 'LCB_NO_SSL'
363
- ]
364
- }]
365
- ]
366
- }
367
- ]
205
+ 'sources': [
206
+ 'src/analytics/analytics_handle.cc',
207
+ 'src/analytics/analytics.cc',
208
+ 'src/bucketconfig/bc_cccp.cc',
209
+ 'src/bucketconfig/bc_file.cc',
210
+ 'src/bucketconfig/bc_http.cc',
211
+ 'src/bucketconfig/bc_static.cc',
212
+ 'src/bucketconfig/confmon.cc',
213
+ 'src/capi/cmd_analytics.cc',
214
+ 'src/capi/cmd_query.cc',
215
+ 'src/capi/cmd_search.cc',
216
+ 'src/capi/cmd_view.cc',
217
+ 'src/docreq/docreq.cc',
218
+ 'src/http/http.cc',
219
+ 'src/http/http_io.cc',
220
+ 'src/jsparse/parser.cc',
221
+ 'src/lcbht/lcbht.cc',
222
+ 'src/lcbio/connect.cc',
223
+ 'src/lcbio/ctx.cc',
224
+ 'src/lcbio/iotable.c',
225
+ 'src/lcbio/ioutils.cc',
226
+ 'src/lcbio/manager.cc',
227
+ 'src/lcbio/protoctx.cc',
228
+ 'src/lcbio/timer.cc',
229
+ 'src/metrics/caching_meter.cc',
230
+ 'src/metrics/logging_meter.cc',
231
+ 'src/metrics/metrics-internal.cc',
232
+ 'src/metrics/metrics.cc',
233
+ 'src/mc/compress.cc',
234
+ 'src/mc/forward.c',
235
+ 'src/mc/mcreq.c',
236
+ 'src/mcserver/mcserver.cc',
237
+ 'src/mcserver/negotiate.cc',
238
+ 'src/n1ql/ixmgmt.cc',
239
+ 'src/n1ql/n1ql-internal.cc',
240
+ 'src/n1ql/n1ql.cc',
241
+ 'src/n1ql/query_handle.cc',
242
+ 'src/n1ql/query_utils.cc',
243
+ 'src/netbuf/netbuf.c',
244
+ 'src/operations/cbflush.cc',
245
+ 'src/operations/counter.cc',
246
+ 'src/operations/durability-seqno.cc',
247
+ 'src/operations/durability.cc',
248
+ 'src/operations/exists.cc',
249
+ 'src/operations/get_replica.cc',
250
+ 'src/operations/get.cc',
251
+ 'src/operations/observe-seqno.cc',
252
+ 'src/operations/observe.cc',
253
+ 'src/operations/pktfwd.cc',
254
+ 'src/operations/ping.cc',
255
+ 'src/operations/remove.cc',
256
+ 'src/operations/stats.cc',
257
+ 'src/operations/store.cc',
258
+ 'src/operations/subdoc.cc',
259
+ 'src/operations/touch.cc',
260
+ 'src/operations/unlock.cc',
261
+ 'src/rdb/bigalloc.c',
262
+ 'src/rdb/chunkalloc.c',
263
+ 'src/rdb/libcalloc.c',
264
+ 'src/rdb/rope.c',
265
+ 'src/search/search_handle.cc',
266
+ 'src/search/search.cc',
267
+ 'src/strcodecs/base64.cc',
268
+ 'src/tracing/span.cc',
269
+ 'src/tracing/threshold_logging_tracer.cc',
270
+ 'src/tracing/tracer.cc',
271
+ 'src/vbucket/ketama.c',
272
+ 'src/vbucket/vbucket.c',
273
+ 'src/views/view_handle.cc',
274
+ 'src/views/view.cc',
275
+ 'src/auth.cc',
276
+ 'src/bootstrap.cc',
277
+ 'src/callbacks.c',
278
+ 'src/cntl.cc',
279
+ 'src/collections.cc',
280
+ 'src/connspec.cc',
281
+ 'src/crypto.cc',
282
+ 'src/defer.cc',
283
+ 'src/dns-srv.cc',
284
+ 'src/dump.cc',
285
+ 'src/errmap.cc',
286
+ 'src/getconfig.cc',
287
+ 'src/gethrtime.c',
288
+ 'src/handler.cc',
289
+ 'src/hdr_timings.c',
290
+ 'src/hostlist.cc',
291
+ 'src/instance.cc',
292
+ 'src/iofactory.c',
293
+ 'src/list.c',
294
+ 'src/logging.c',
295
+ 'src/newconfig.cc',
296
+ 'src/nodeinfo.cc',
297
+ 'src/iometrics.cc',
298
+ 'src/retrychk.cc',
299
+ 'src/retryq.cc',
300
+ 'src/ringbuffer.c',
301
+ 'src/rnd.cc',
302
+ 'src/settings.cc',
303
+ # 'src/timings.c', we use hdr_timings.c
304
+ 'src/utilities.cc',
305
+ 'src/wait.cc',
306
+
307
+ 'plugins/io/select/plugin-select.c'
308
+ ],
309
+ 'dependencies': [
310
+ 'httpparser',
311
+ 'cjson',
312
+ 'cbsasl',
313
+ 'snappy',
314
+ 'jsoncpp',
315
+ 'HdrHistogram_c'
316
+ ],
317
+ 'copies': [{
318
+ 'files': ['plugins/io/libuv/libuv_io_opts.h'],
319
+ 'destination': 'include/libcouchbase/',
320
+ }, {
321
+ 'files': [
322
+ 'plugins/io/libuv/plugin-libuv.c',
323
+ 'plugins/io/libuv/plugin-internal.h',
324
+ 'plugins/io/libuv/libuv_compat.h'
325
+ ],
326
+ 'destination': 'include/libcouchbase/plugins/io/libuv/'
327
+ }],
328
+ 'direct_dependent_settings': {
329
+ 'include_dirs': [
330
+ 'include',
331
+ './',
332
+ 'gyp_config/common',
333
+ 'gyp_config/<(OS)/<(target_arch)'
334
+ ],
335
+ },
336
+ 'conditions': [
337
+ ['OS=="win"', {
338
+ 'sources': [
339
+ 'plugins/io/iocp/iocp_iops.c',
340
+ 'plugins/io/iocp/iocp_iops.h',
341
+ 'plugins/io/iocp/iocp_loop.c',
342
+ 'plugins/io/iocp/iocp_timer.c',
343
+ 'plugins/io/iocp/iocp_util.c'
344
+ ],
345
+ 'direct_dependent_settings': {
346
+ 'include_dirs': [
347
+ 'plugins/io/libuv'
348
+ ],
349
+ },
350
+ }],
351
+ ['OS!="win" or node_major_version>=6', {
352
+ 'sources': [
353
+ 'src/ssl/ssl_c.c',
354
+ 'src/ssl/ssl_common.c',
355
+ 'src/ssl/ssl_e.c',
356
+ ]
357
+ }],
358
+ ['OS=="win" and node_major_version<6', {
359
+ 'defines': [
360
+ 'LCB_NO_SSL'
361
+ ]
362
+ }]
363
+ ]
364
+ }
365
+ ]
368
366
  }