corecdtl 0.1.2 → 0.1.3
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/CMakeLists.txt +0 -3
- package/binding.gyp +11 -17
- package/package.json +1 -1
package/CMakeLists.txt
CHANGED
|
@@ -15,14 +15,12 @@ include_directories(
|
|
|
15
15
|
${CMAKE_SOURCE_DIR}/native/http/cpool
|
|
16
16
|
)
|
|
17
17
|
|
|
18
|
-
include_directories(${CMAKE_SOURCE_DIR}/native/third_party/simdjson)
|
|
19
18
|
|
|
20
19
|
file(GLOB MAIN_SOURCE "native/main.cpp")
|
|
21
20
|
file(GLOB HTTP_SOURCES "native/http/core/*.cpp")
|
|
22
21
|
file(GLOB ROUTE_BUILDER_SOURCES "native/http/routes/*.cpp")
|
|
23
22
|
file(GLOB CHUNK_PROGRESSION_POOL_SOURCES "native/http/cpool/*.cpp")
|
|
24
23
|
file(GLOB PARSER_SOURCES "native/http/parser/*.cpp")
|
|
25
|
-
file(GLOB SIMDJSON_SOURCES "native/third_party/simdjson/*.cpp")
|
|
26
24
|
|
|
27
25
|
add_library(${PROJECT_NAME} SHARED
|
|
28
26
|
${MAIN_SOURCE}
|
|
@@ -30,7 +28,6 @@ add_library(${PROJECT_NAME} SHARED
|
|
|
30
28
|
${CHUNK_PROGRESSION_POOL_SOURCES}
|
|
31
29
|
${PARSER_SOURCES}
|
|
32
30
|
${HTTP_SOURCES}
|
|
33
|
-
${SIMDJSON_SOURCES}
|
|
34
31
|
${CMAKE_JS_SRC}
|
|
35
32
|
)
|
|
36
33
|
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")
|
package/binding.gyp
CHANGED
|
@@ -5,17 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
"sources": [
|
|
7
7
|
"native/main.cpp",
|
|
8
|
-
|
|
9
8
|
"native/http/core/*.cpp",
|
|
10
9
|
"native/http/routes/*.cpp",
|
|
11
10
|
"native/http/parser/*.cpp",
|
|
12
|
-
"native/http/cpool/*.cpp"
|
|
13
|
-
|
|
14
|
-
"native/third_party/simdjson/*.cpp"
|
|
11
|
+
"native/http/cpool/*.cpp"
|
|
15
12
|
],
|
|
16
13
|
|
|
17
14
|
"include_dirs": [
|
|
18
|
-
"
|
|
15
|
+
"<!@(node -p \"require('node-addon-api').include\")",
|
|
19
16
|
"native/include",
|
|
20
17
|
"native/http/core",
|
|
21
18
|
"native/http/routes",
|
|
@@ -24,26 +21,23 @@
|
|
|
24
21
|
"native/third_party/simdjson"
|
|
25
22
|
],
|
|
26
23
|
|
|
24
|
+
"dependencies": [
|
|
25
|
+
"<!(node -p \"require('node-addon-api').gyp\")"
|
|
26
|
+
],
|
|
27
|
+
|
|
27
28
|
"defines": [
|
|
28
29
|
"NAPI_VERSION=3",
|
|
29
30
|
"NAPI_CPP_EXCEPTIONS"
|
|
30
31
|
],
|
|
31
32
|
|
|
32
33
|
"cflags_cc": [
|
|
33
|
-
"-std=c++
|
|
34
|
-
"-
|
|
34
|
+
"-std=c++14",
|
|
35
|
+
"-fexceptions"
|
|
35
36
|
],
|
|
36
37
|
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"VCCLCompilerTool": {
|
|
41
|
-
"ExceptionHandling": 1,
|
|
42
|
-
"AdditionalOptions": ["/std:c++17"]
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}]
|
|
46
|
-
]
|
|
38
|
+
"xcode_settings": {
|
|
39
|
+
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
|
|
40
|
+
}
|
|
47
41
|
}
|
|
48
42
|
]
|
|
49
43
|
}
|