couchbase 3.2.2 → 3.2.5

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