forked from ziglang/sublime-zig-language
-
Notifications
You must be signed in to change notification settings - Fork 1
/
devbox.json
35 lines (35 loc) · 1.08 KB
/
devbox.json
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
{
"packages": [
"git@latest",
"cmake@latest",
"icu@latest",
"icu.dev",
"libz@latest",
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null",
],
"scripts": {
"pcre_install": [
"git submodule update --init pcre",
"mkdir -p pcre/build",
"cd pcre/build",
"cmake .. -DPCRE_SUPPORT_JIT=ON -DPCRE_SUPPORT_UTF=ON -DPCRE_SUPPORT_UNICODE_PROPERTIES=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPCRE_BUILD_PCRECPP=OFF -DPCRE_BUILD_PCREGREP=OFF -DPCRE_BUILD_TESTS=OFF -G 'Unix Makefiles'",
"make",
],
"linguist_build": [
"export PCRE=`realpath pcre/build`",
"git submodule update --init linguist",
"cd linguist/tools/grammars",
"CGO_CFLAGS=-I$PCRE CGO_LDFLAGS=-L$PCRE go build ./cmd/grammar-compiler",
],
"linguist_compile": [
"echo '../Syntaxes:\n- source.zig\n' > linguist/Grammars.yaml",
"cd linguist",
"./tools/grammars/grammar-compiler compile",
],
},
},
}