diff options
author | Andrew Cady <d@jerkface.net> | 2019-05-30 06:06:58 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-05-30 06:06:58 -0400 |
commit | 16de6189e7bb6c7ee2cc8d3236d3f8bf666f2e68 (patch) | |
tree | 067019910db302fdc184d3ad84745d64fe9496a2 | |
parent | f45207ef28ef78bdb387a28bc948b69d46346d7b (diff) |
build with stack
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | run.sh | 15 | ||||
-rw-r--r-- | stack.yaml | 28 |
3 files changed, 45 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..68a56e9 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | .stack-work/ | ||
2 | hello_obj2.json | ||
3 | skyboxes/ | ||
@@ -39,4 +39,17 @@ | |||
39 | # Mesa may not really implement all the features of the given version. (for | 39 | # Mesa may not really implement all the features of the given version. (for |
40 | # developers only) | 40 | # developers only) |
41 | 41 | ||
42 | MESA_GL_VERSION_OVERRIDE=3.3 MESA_GLSL_VERSION_OVERRIDE=330 ./gix | 42 | #cmd=gix |
43 | cmd=meshsketch | ||
44 | |||
45 | quiet() { "$@" >/dev/null 2>&1; } | ||
46 | |||
47 | quiet which $cmd || quiet stack exec -- which $cmd || stack build | ||
48 | |||
49 | [ -e .stack-work ] && run='stack run --' || run= | ||
50 | |||
51 | if [ "$cmd" = meshsketch ]; then | ||
52 | [ -e hello_obj2.json ] || $run lc hello_obj2.lc | ||
53 | fi | ||
54 | |||
55 | MESA_GL_VERSION_OVERRIDE=3.3 MESA_GLSL_VERSION_OVERRIDE=330 $run $cmd | ||
diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..818677a --- /dev/null +++ b/stack.yaml | |||
@@ -0,0 +1,28 @@ | |||
1 | resolver: lts-12.26 | ||
2 | packages: | ||
3 | - . | ||
4 | |||
5 | # - lambdacube-compiler | ||
6 | # - lambdacube-gl | ||
7 | # - lambdacube-ir/ddl | ||
8 | # - lambdacube-ir/lambdacube-ir.haskell | ||
9 | |||
10 | - location: | ||
11 | git: d@emmy.childrenofmay.org:public_git/lambdacube-compiler | ||
12 | commit: fbb307078eb95cada21ba8dc2475c67220c4f636 | ||
13 | extra-dep: true | ||
14 | - location: | ||
15 | git: d@emmy.childrenofmay.org:public_git/lambdacube-gl | ||
16 | commit: b13702e457d79f79831f8e852edd89a6abf28d81 | ||
17 | extra-dep: true | ||
18 | - location: | ||
19 | git: d@emmy.childrenofmay.org:public_git/lambdacube-ir | ||
20 | commit: f6617496f582ad287bd8203d931a6ee037ed3a69 | ||
21 | subdirs: | ||
22 | - lambdacube-ir.haskell | ||
23 | - ddl | ||
24 | extra-dep: true | ||
25 | extra-deps: | ||
26 | - ede-0.2.9 | ||
27 | - text-format-0.3.2 | ||
28 | - wavefront-0.7.1.3 | ||