This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
forked from tree-sitter/node-tree-sitter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
binding.gyp
59 lines (59 loc) · 1.36 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"targets": [
{
"target_name": "tree_sitter_runtime_binding",
"dependencies": ["tree_sitter"],
"sources": [
"src/binding.cc",
"src/conversions.cc",
"src/language.cc",
"src/logger.cc",
"src/node.cc",
"src/parser.cc",
"src/query.cc",
"src/tree.cc",
"src/tree_cursor.cc",
"src/util.cc",
],
"include_dirs": [
"vendor/tree-sitter/lib/include",
"vendor/superstring",
"<!(node -e \"require('nan')\")",
],
"cflags_cc": ["-std=c++17"],
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"OTHER_CPLUSPLUSFLAGS": ["-std=c++17", "-stdlib=libc++"],
},
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": [
"/std:c++17",
],
"RuntimeLibrary": 0,
},
},
},
{
"target_name": "tree_sitter",
'type': 'static_library',
"sources": [
"vendor/tree-sitter/lib/src/lib.c"
],
"include_dirs": [
"vendor/tree-sitter/lib/src",
"vendor/tree-sitter/lib/include",
],
"cflags": [
"-std=c99"
]
}
],
'variables': {
'runtime%': 'node',
'openssl_fips': '',
},
'conditions': [
['runtime=="electron"', { 'defines': ['NODE_RUNTIME_ELECTRON=1'] }],
]
}