mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-12-03 00:07:21 +00:00
Avoid remote git/SSH downloads for the Dart grammar during Docker and npm installs by resolving tree-sitter-dart from vendored source and building it during postinstall. Made-with: Cursor
31 lines
670 B
Python
31 lines
670 B
Python
{
|
|
"targets": [
|
|
{
|
|
"target_name": "tree_sitter_dart_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.
|
|
"src/scanner.c",
|
|
],
|
|
"conditions": [
|
|
["OS!='win'", {
|
|
"cflags_c": [
|
|
"-std=c11",
|
|
],
|
|
}, { # OS == "win"
|
|
"cflags_c": [
|
|
"/std:c11",
|
|
"/utf-8",
|
|
],
|
|
}],
|
|
],
|
|
}
|
|
]
|
|
}
|