nodejieba-plus 3.5.9 → 3.5.10

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.
package/.npmignore CHANGED
@@ -3,7 +3,16 @@
3
3
  npm-debug.log
4
4
  node_modules
5
5
 
6
- build
6
+ # 只排除 build 目录中的中间文件,保留编译后的二进制文件
7
+ build/binding.Makefile
8
+ build/config.gypi
9
+ build/gyp-mac-tool
10
+ build/Makefile
11
+ build/Release/.deps/
12
+ build/Release/obj.target/
13
+ build/Release/*.a
14
+ build/Release/*.mk
15
+ build/Release/*.Makefile
7
16
 
8
17
  # don't need these in the npm package.
9
18
  html/*.png
Binary file
@@ -0,0 +1,194 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := nodejieba
5
+ DEFS_Debug := \
6
+ '-DNODE_GYP_MODULE_NAME=nodejieba' \
7
+ '-DUSING_UV_SHARED=1' \
8
+ '-DUSING_V8_SHARED=1' \
9
+ '-DV8_DEPRECATION_WARNINGS=1' \
10
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
11
+ '-D_FILE_OFFSET_BITS=64' \
12
+ '-D_DARWIN_USE_64_BIT_INODE=1' \
13
+ '-D_LARGEFILE_SOURCE' \
14
+ '-DBUILDING_NODE_EXTENSION' \
15
+ '-DDEBUG' \
16
+ '-D_DEBUG'
17
+
18
+ # Flags passed to all source files.
19
+ CFLAGS_Debug := \
20
+ -O0 \
21
+ -gdwarf-2 \
22
+ -fno-strict-aliasing \
23
+ -mmacosx-version-min=10.13 \
24
+ -arch \
25
+ arm64 \
26
+ -Wall \
27
+ -Wendif-labels \
28
+ -W \
29
+ -Wno-unused-parameter
30
+
31
+ # Flags passed to only C files.
32
+ CFLAGS_C_Debug :=
33
+
34
+ # Flags passed to only C++ files.
35
+ CFLAGS_CC_Debug := \
36
+ -std=gnu++20 \
37
+ -stdlib=libc++ \
38
+ -fno-rtti \
39
+ -mmacosx-version-min=10.13 \
40
+ -std=c++14 \
41
+ -stdlib=libc++ \
42
+ -DLOGGING_LEVEL=LL_WARNING
43
+
44
+ # Flags passed to only ObjC files.
45
+ CFLAGS_OBJC_Debug :=
46
+
47
+ # Flags passed to only ObjC++ files.
48
+ CFLAGS_OBJCC_Debug :=
49
+
50
+ INCS_Debug := \
51
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/include/node \
52
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/src \
53
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/openssl/config \
54
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/openssl/openssl/include \
55
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/uv/include \
56
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/zlib \
57
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/v8/include \
58
+ -I$(srcdir)/node_modules/node-addon-api \
59
+ -I$(srcdir)/submodules/cppjieba/include \
60
+ -I$(srcdir)/submodules/cppjieba/deps/limonp/include
61
+
62
+ DEFS_Release := \
63
+ '-DNODE_GYP_MODULE_NAME=nodejieba' \
64
+ '-DUSING_UV_SHARED=1' \
65
+ '-DUSING_V8_SHARED=1' \
66
+ '-DV8_DEPRECATION_WARNINGS=1' \
67
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
68
+ '-D_FILE_OFFSET_BITS=64' \
69
+ '-D_DARWIN_USE_64_BIT_INODE=1' \
70
+ '-D_LARGEFILE_SOURCE' \
71
+ '-DBUILDING_NODE_EXTENSION'
72
+
73
+ # Flags passed to all source files.
74
+ CFLAGS_Release := \
75
+ -O3 \
76
+ -gdwarf-2 \
77
+ -fno-strict-aliasing \
78
+ -mmacosx-version-min=10.13 \
79
+ -arch \
80
+ arm64 \
81
+ -Wall \
82
+ -Wendif-labels \
83
+ -W \
84
+ -Wno-unused-parameter
85
+
86
+ # Flags passed to only C files.
87
+ CFLAGS_C_Release :=
88
+
89
+ # Flags passed to only C++ files.
90
+ CFLAGS_CC_Release := \
91
+ -std=gnu++20 \
92
+ -stdlib=libc++ \
93
+ -fno-rtti \
94
+ -mmacosx-version-min=10.13 \
95
+ -std=c++14 \
96
+ -stdlib=libc++ \
97
+ -DLOGGING_LEVEL=LL_WARNING
98
+
99
+ # Flags passed to only ObjC files.
100
+ CFLAGS_OBJC_Release :=
101
+
102
+ # Flags passed to only ObjC++ files.
103
+ CFLAGS_OBJCC_Release :=
104
+
105
+ INCS_Release := \
106
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/include/node \
107
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/src \
108
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/openssl/config \
109
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/openssl/openssl/include \
110
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/uv/include \
111
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/zlib \
112
+ -I/Users/emengweb/Library/Caches/node-gyp/25.8.2/deps/v8/include \
113
+ -I$(srcdir)/node_modules/node-addon-api \
114
+ -I$(srcdir)/submodules/cppjieba/include \
115
+ -I$(srcdir)/submodules/cppjieba/deps/limonp/include
116
+
117
+ OBJS := \
118
+ $(obj).target/$(TARGET)/lib/index.o \
119
+ $(obj).target/$(TARGET)/lib/nodejieba.o
120
+
121
+ # Add to the list of files we specially track dependencies for.
122
+ all_deps += $(OBJS)
123
+
124
+ # CFLAGS et al overrides must be target-local.
125
+ # See "Target-specific Variable Values" in the GNU Make manual.
126
+ $(OBJS): TOOLSET := $(TOOLSET)
127
+ $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
128
+ $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
129
+ $(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
130
+ $(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))
131
+
132
+ # Suffix rules, putting all outputs into $(obj).
133
+
134
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
135
+ @$(call do_cmd,cxx,1)
136
+
137
+ # Try building from generated source, too.
138
+
139
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
140
+ @$(call do_cmd,cxx,1)
141
+
142
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
143
+ @$(call do_cmd,cxx,1)
144
+
145
+ # End of this set of suffix rules
146
+ ### Rules for final target.
147
+ LDFLAGS_Debug := \
148
+ -undefined dynamic_lookup \
149
+ -Wl,-search_paths_first \
150
+ -mmacosx-version-min=10.13 \
151
+ -arch \
152
+ arm64 \
153
+ -L$(builddir) \
154
+ -stdlib=libc++
155
+
156
+ LIBTOOLFLAGS_Debug := \
157
+ -undefined dynamic_lookup \
158
+ -Wl,-search_paths_first
159
+
160
+ LDFLAGS_Release := \
161
+ -undefined dynamic_lookup \
162
+ -Wl,-search_paths_first \
163
+ -mmacosx-version-min=10.13 \
164
+ -arch \
165
+ arm64 \
166
+ -L$(builddir) \
167
+ -stdlib=libc++
168
+
169
+ LIBTOOLFLAGS_Release := \
170
+ -undefined dynamic_lookup \
171
+ -Wl,-search_paths_first
172
+
173
+ LIBS :=
174
+
175
+ $(builddir)/nodejieba.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
176
+ $(builddir)/nodejieba.node: LIBS := $(LIBS)
177
+ $(builddir)/nodejieba.node: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
178
+ $(builddir)/nodejieba.node: TOOLSET := $(TOOLSET)
179
+ $(builddir)/nodejieba.node: $(OBJS) FORCE_DO_CMD
180
+ $(call do_cmd,solink_module)
181
+
182
+ all_deps += $(builddir)/nodejieba.node
183
+ # Add target alias
184
+ .PHONY: nodejieba
185
+ nodejieba: $(builddir)/nodejieba.node
186
+
187
+ # Short alias for building this executable.
188
+ .PHONY: nodejieba.node
189
+ nodejieba.node: $(builddir)/nodejieba.node
190
+
191
+ # Add executable to "all" target.
192
+ .PHONY: all
193
+ all: $(builddir)/nodejieba.node
194
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nodejieba-plus",
3
3
  "description": "chinese word segmentation for node",
4
- "version": "3.5.9",
4
+ "version": "3.5.10",
5
5
  "author": "Yanyi Wu <wuyanyi09@foxmail.com>",
6
6
  "maintainers": [
7
7
  "Yanyi Wu <wuyanyi09@foxmail.com>"