couchbase 3.2.0 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/README.md +24 -18
  2. package/binding.gyp +88 -85
  3. package/deps/lcb/CMakeLists.txt +1 -1
  4. package/deps/lcb/CONTRIBUTING.md +1 -1
  5. package/deps/lcb/README.markdown +2 -2
  6. package/deps/lcb/RELEASE_NOTES.markdown +99 -14
  7. package/deps/lcb/cmake/Modules/GetVersionInfo.cmake +1 -1
  8. package/deps/lcb/contrib/cbsasl/src/scram-sha/scram_utils.cc +22 -26
  9. package/deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp +20 -7
  10. package/deps/lcb/doc/Doxyfile +1 -1
  11. package/deps/lcb/example/CMakeLists.txt +4 -4
  12. package/deps/lcb/example/libuvdirect/main.c +39 -12
  13. package/deps/lcb/example/minimal/durability.cc +149 -0
  14. package/deps/lcb/example/minimal/query.c +11 -9
  15. package/deps/lcb/gyp_config/common/libcouchbase/configuration.h +3 -3
  16. package/deps/lcb/gyp_config/linux/arm64/config.h +243 -0
  17. package/deps/lcb/include/libcouchbase/couchbase.h +80 -5
  18. package/deps/lcb/include/libcouchbase/error.h +2 -0
  19. package/deps/lcb/include/libcouchbase/ixmgmt.h +15 -10
  20. package/deps/lcb/include/libcouchbase/tracing.h +2 -2
  21. package/deps/lcb/include/memcached/protocol_binary.h +21 -0
  22. package/deps/lcb/libcouchbase.gyp +347 -349
  23. package/deps/lcb/packaging/deb/control +1 -1
  24. package/deps/lcb/src/analytics/analytics_handle.cc +13 -5
  25. package/deps/lcb/src/analytics/analytics_handle.hh +29 -0
  26. package/deps/lcb/src/bootstrap.cc +6 -3
  27. package/deps/lcb/src/capi/cmd_analytics.cc +12 -1
  28. package/deps/lcb/src/capi/cmd_analytics.hh +30 -0
  29. package/deps/lcb/src/capi/cmd_counter.hh +23 -0
  30. package/deps/lcb/src/capi/cmd_exists.hh +24 -1
  31. package/deps/lcb/src/capi/cmd_get.hh +22 -0
  32. package/deps/lcb/src/capi/cmd_get_replica.hh +23 -0
  33. package/deps/lcb/src/capi/cmd_http.hh +7 -0
  34. package/deps/lcb/src/capi/cmd_query.cc +11 -1
  35. package/deps/lcb/src/capi/cmd_query.hh +31 -0
  36. package/deps/lcb/src/capi/cmd_remove.hh +23 -0
  37. package/deps/lcb/src/capi/cmd_search.cc +6 -0
  38. package/deps/lcb/src/capi/cmd_search.hh +23 -0
  39. package/deps/lcb/src/capi/cmd_store.hh +33 -21
  40. package/deps/lcb/src/capi/cmd_subdoc.hh +35 -0
  41. package/deps/lcb/src/capi/cmd_touch.hh +23 -0
  42. package/deps/lcb/src/capi/cmd_unlock.hh +23 -0
  43. package/deps/lcb/src/capi/cmd_view.hh +6 -0
  44. package/deps/lcb/src/capi/collection_qualifier.hh +2 -2
  45. package/deps/lcb/src/cntl.cc +45 -11
  46. package/deps/lcb/src/crypto.cc +2 -2
  47. package/deps/lcb/src/dns-srv.cc +5 -3
  48. package/deps/lcb/src/errmap.cc +5 -9
  49. package/deps/lcb/src/errmap.h +7 -3
  50. package/deps/lcb/src/handler.cc +24 -18
  51. package/deps/lcb/src/hostlist.h +2 -2
  52. package/deps/lcb/src/http/http-priv.h +2 -2
  53. package/deps/lcb/src/http/http.cc +5 -2
  54. package/deps/lcb/src/instance.cc +20 -11
  55. package/deps/lcb/src/internal.h +9 -0
  56. package/deps/lcb/src/lcbio/connect.cc +14 -2
  57. package/deps/lcb/src/lcbio/connect.h +2 -2
  58. package/deps/lcb/src/lcbio/ctx.cc +4 -2
  59. package/deps/lcb/src/lcbio/ioutils.cc +9 -10
  60. package/deps/lcb/src/lcbio/manager.cc +1 -1
  61. package/deps/lcb/src/mcserver/mcserver.cc +9 -6
  62. package/deps/lcb/src/mcserver/negotiate.cc +39 -17
  63. package/deps/lcb/src/n1ql/ixmgmt.cc +1 -2
  64. package/deps/lcb/src/n1ql/query_handle.cc +41 -19
  65. package/deps/lcb/src/n1ql/query_handle.hh +28 -1
  66. package/deps/lcb/src/operations/counter.cc +18 -5
  67. package/deps/lcb/src/operations/exists.cc +25 -4
  68. package/deps/lcb/src/operations/get.cc +39 -19
  69. package/deps/lcb/src/operations/get_replica.cc +28 -8
  70. package/deps/lcb/src/operations/observe.cc +1 -1
  71. package/deps/lcb/src/operations/ping.cc +8 -8
  72. package/deps/lcb/src/operations/pktfwd.cc +2 -1
  73. package/deps/lcb/src/operations/remove.cc +39 -22
  74. package/deps/lcb/src/operations/store.cc +18 -5
  75. package/deps/lcb/src/operations/subdoc.cc +18 -6
  76. package/deps/lcb/src/operations/touch.cc +34 -16
  77. package/deps/lcb/src/operations/unlock.cc +24 -5
  78. package/deps/lcb/src/packetutils.h +3 -2
  79. package/deps/lcb/src/retryq.cc +24 -5
  80. package/deps/lcb/src/search/search.cc +1 -0
  81. package/deps/lcb/src/search/search_handle.cc +30 -8
  82. package/deps/lcb/src/search/search_handle.hh +29 -0
  83. package/deps/lcb/src/settings.cc +1 -1
  84. package/deps/lcb/src/ssl/ssl_common.c +6 -7
  85. package/deps/lcb/src/tracing/span.cc +47 -14
  86. package/deps/lcb/src/tracing/tracer.cc +11 -2
  87. package/deps/lcb/src/tracing/tracing-internal.h +105 -93
  88. package/deps/lcb/src/utilities.cc +43 -0
  89. package/deps/lcb/src/utilities.h +53 -0
  90. package/deps/lcb/src/vbucket/vbucket.c +34 -33
  91. package/deps/lcb/src/views/view_handle.cc +13 -5
  92. package/deps/lcb/src/views/view_handle.hh +29 -0
  93. package/deps/lcb/tests/CMakeLists.txt +21 -0
  94. package/deps/lcb/tests/basic/t_ctlcodes.cc +24 -3
  95. package/deps/lcb/tests/basic/t_jsparse.cc +8 -0
  96. package/deps/lcb/tests/basic/t_n1qlstrings.cc +73 -0
  97. package/deps/lcb/tests/iotests/mock-environment.cc +30 -1
  98. package/deps/lcb/tests/iotests/mock-environment.h +49 -0
  99. package/deps/lcb/tests/iotests/mock-unit-test.cc +104 -6
  100. package/deps/lcb/tests/iotests/mock-unit-test.h +34 -0
  101. package/deps/lcb/tests/iotests/t_collections.cc +1 -1
  102. package/deps/lcb/tests/iotests/t_confmon.cc +4 -2
  103. package/deps/lcb/tests/iotests/t_get.cc +109 -7
  104. package/deps/lcb/tests/iotests/t_http.cc +9 -4
  105. package/deps/lcb/tests/iotests/t_lock.cc +18 -0
  106. package/deps/lcb/tests/iotests/t_mutate.cc +157 -63
  107. package/deps/lcb/tests/iotests/t_n1ql.cc +330 -33
  108. package/deps/lcb/tests/iotests/t_views.cc +1 -0
  109. package/deps/lcb/tests/iotests/testutil.cc +168 -0
  110. package/deps/lcb/tests/iotests/testutil.h +116 -0
  111. package/deps/lcb/tests/mocksupport/procutil.c +32 -28
  112. package/deps/lcb/tests/mocksupport/server.c +0 -1
  113. package/deps/lcb/tests/mocksupport/timeout.c +2 -2
  114. package/deps/lcb/tools/cbc.cc +7 -0
  115. package/dist/analyticsindexmanager.js +512 -524
  116. package/dist/binding.d.ts +3 -0
  117. package/dist/bindingutilities.js +4 -0
  118. package/dist/bucket.js +1 -1
  119. package/dist/bucketmanager.d.ts +31 -1
  120. package/dist/bucketmanager.js +194 -186
  121. package/dist/cluster.d.ts +7 -0
  122. package/dist/cluster.js +48 -38
  123. package/dist/collection.js +11 -17
  124. package/dist/collectionmanager.js +181 -197
  125. package/dist/connection.d.ts +3 -1
  126. package/dist/connection.js +27 -16
  127. package/dist/couchbase.d.ts +1 -0
  128. package/dist/couchbase.js +3 -13
  129. package/dist/datastructures.js +239 -310
  130. package/dist/diagnosticsexecutor.js +70 -85
  131. package/dist/errors.d.ts +70 -0
  132. package/dist/errors.js +96 -2
  133. package/dist/eventingfunctionmanager.d.ts +804 -0
  134. package/dist/eventingfunctionmanager.js +993 -0
  135. package/dist/httpexecutor.d.ts +2 -1
  136. package/dist/httpexecutor.js +30 -37
  137. package/dist/queryindexmanager.js +240 -266
  138. package/dist/scope.js +10 -4
  139. package/dist/sdspecs.d.ts +1 -1
  140. package/dist/searchexecutor.js +3 -0
  141. package/dist/searchindexmanager.js +240 -271
  142. package/dist/searchquery.d.ts +17 -0
  143. package/dist/searchquery.js +22 -1
  144. package/dist/searchtypes.d.ts +7 -2
  145. package/dist/searchtypes.js +2 -2
  146. package/dist/usermanager.js +251 -264
  147. package/dist/utilities.d.ts +2 -0
  148. package/dist/utilities.js +7 -2
  149. package/dist/viewexecutor.js +1 -1
  150. package/dist/viewindexmanager.js +131 -150
  151. package/package.json +1 -1
  152. package/src/addondata.cpp +58 -0
  153. package/src/addondata.h +40 -0
  154. package/src/binding.cpp +3 -1
  155. package/src/cas.h +2 -2
  156. package/src/connection.cpp +25 -178
  157. package/src/connection.h +8 -65
  158. package/src/connection_ops.cpp +57 -34
  159. package/src/constants.cpp +3 -0
  160. package/src/instance.cpp +235 -0
  161. package/src/instance.h +102 -0
  162. package/src/{connection_callbacks.cpp → instance_callbacks.cpp} +34 -34
  163. package/src/logger.cpp +11 -1
  164. package/src/logger.h +3 -0
  165. package/src/metrics.cpp +10 -0
  166. package/src/metrics.h +3 -0
  167. package/src/mutationtoken.h +2 -2
  168. package/src/opbuilder.h +13 -15
  169. package/src/respreader.cpp +1 -0
  170. package/src/respreader.h +6 -4
  171. package/src/tracespan.h +11 -11
  172. package/src/tracing.cpp +11 -0
  173. package/src/tracing.h +3 -0
  174. package/src/valueparser.h +5 -0
  175. package/deps/lcb/example/observe/durability.c +0 -110
@@ -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
  }