pulsar-client 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +23 -0
  2. package/binding.gyp +13 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -66,6 +66,7 @@ cmake \
66
66
  cmake --config Release
67
67
  ```
68
68
 
69
+
69
70
  2. Set the variable `PULSAR_CPP_DIR` with the `pulsar-client-cpp` path in a Windows command tool.
70
71
 
71
72
  ```shell
@@ -79,6 +80,28 @@ set PULSAR_CPP_DIR=C:\pulsar\pulsar-client-cpp
79
80
  set OS_ARCH=x64-windows
80
81
  ```
81
82
 
83
+ ### Install on mac
84
+
85
+ 1. Install the Pulsar C++ client on mac.
86
+
87
+ ```shell
88
+ brew install libpulsar
89
+ ```
90
+
91
+ 2. Get the installation path of libpulsar
92
+
93
+ ```shell
94
+ brew info libpulsar
95
+ ```
96
+
97
+
98
+ 2. Set the variable `PULSAR_CPP_DIR` with the `pulsar-client-cpp` path in a mac command tool.
99
+
100
+ ```shell
101
+ # for example
102
+ export PULSAR_CPP_DIR=/usr/local/Cellar/libpulsar/2.9.1_1
103
+ ```
104
+
82
105
 
83
106
  ### Install pulsar-client to your project
84
107
 
package/binding.gyp CHANGED
@@ -24,6 +24,11 @@
24
24
  'pulsar_cpp_dir%': '<!(echo %PULSAR_CPP_DIR%)',
25
25
  'os_arch%': '<!(echo %OS_ARCH%)',
26
26
  },
27
+ }],
28
+ ['OS=="mac"', {
29
+ 'variables': {
30
+ 'pulsar_cpp_dir': '<!(echo $PULSAR_CPP_DIR)'
31
+ }
27
32
  }]
28
33
  ],
29
34
  "targets": [
@@ -50,6 +55,14 @@
50
55
  "src/ReaderConfig.cc",
51
56
  ],
52
57
  'conditions': [
58
+ ['OS=="mac"', {
59
+ "include_dirs": [
60
+ "<(pulsar_cpp_dir)/include",
61
+ ],
62
+ "libraries": [
63
+ "<(pulsar_cpp_dir)/lib/libpulsar.dylib"
64
+ ],
65
+ }],
53
66
  ['OS=="win"', {
54
67
  "include_dirs": [
55
68
  "<(pulsar_cpp_dir)\include",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulsar-client",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Pulsar Node.js client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",