Skip to content

Commit 124200d

Browse files
committed
Fix binding.gyp
1 parent c66f022 commit 124200d

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

binding.gyp

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,15 @@
44
},
55
"targets": [
66
{
7-
"target_name": "action_before_build",
8-
"type": "none",
9-
"hard_dependency": 1,
10-
"actions": [
11-
{
12-
"action_name": "update_libchdb",
13-
"inputs": [],
14-
"outputs": [
15-
"<(module_root_dir)/libchdb.so"
16-
],
17-
"action": ["./update_libchdb.sh"]
18-
}
19-
]
20-
},
21-
{
22-
"target_name": "addon",
23-
"sources": [ "src/addon.cc" ],
24-
"dependencies": [
25-
"action_before_build"
26-
],
7+
"target_name": "chdb_node",
8+
"sources": [ "lib/chdb_node.cpp" ],
279
"include_dirs": [
2810
"<!@(node -p \"require('node-addon-api').include\")",
29-
"include/"
11+
"lib/"
3012
],
31-
"libraries": [ "-L<(module_root_dir)", "-lchdb" ],
32-
"cflags!": [ "-fno-exceptions" ],
33-
"cflags_cc!": [ "-fno-exceptions" ],
13+
"libraries": [ "-L<(module_root_dir)/lib", "-lchdb" ],
14+
# "cflags!": [ "-fno-exceptions" ],
15+
# "cflags_cc!": [ "-fno-exceptions" ],
3416
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
3517
}
3618
]

0 commit comments

Comments
 (0)