Skip to content

Commit

Permalink
include the binding.gyp file
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh committed May 3, 2024
1 parent fb9667a commit 6c57fa5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/node_modules/
/yarn-error.log
/binding.gyp
/build
test.ql
.DS_Store
Expand Down
30 changes: 30 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"targets": [
{
"target_name": "tree_sitter_ql_binding",
"dependencies": [
"<!(node -p \"require('node-addon-api').targets\"):node_addon_api_except",
],
"include_dirs": [
"src",
],
"sources": [
"bindings/node/binding.cc",
"src/parser.c",
# NOTE: if your language has an external scanner, add it here.
],
"conditions": [
["OS!='win'", {
"cflags_c": [
"-std=c11",
],
}, { # OS == "win"
"cflags_c": [
"/std:c11",
"/utf-8",
],
}],
],
}
]
}

0 comments on commit 6c57fa5

Please sign in to comment.