summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-05-30 06:06:58 -0400
committerAndrew Cady <d@jerkface.net>2019-05-30 06:06:58 -0400
commit16de6189e7bb6c7ee2cc8d3236d3f8bf666f2e68 (patch)
tree067019910db302fdc184d3ad84745d64fe9496a2
parentf45207ef28ef78bdb387a28bc948b69d46346d7b (diff)
build with stack
-rw-r--r--.gitignore3
-rwxr-xr-xrun.sh15
-rw-r--r--stack.yaml28
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/
2hello_obj2.json
3skyboxes/
diff --git a/run.sh b/run.sh
index f004906..eb97199 100755
--- a/run.sh
+++ b/run.sh
@@ -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
42MESA_GL_VERSION_OVERRIDE=3.3 MESA_GLSL_VERSION_OVERRIDE=330 ./gix 42#cmd=gix
43cmd=meshsketch
44
45quiet() { "$@" >/dev/null 2>&1; }
46
47quiet which $cmd || quiet stack exec -- which $cmd || stack build
48
49[ -e .stack-work ] && run='stack run --' || run=
50
51if [ "$cmd" = meshsketch ]; then
52 [ -e hello_obj2.json ] || $run lc hello_obj2.lc
53fi
54
55MESA_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 @@
1resolver: lts-12.26
2packages:
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
25extra-deps:
26- ede-0.2.9
27- text-format-0.3.2
28- wavefront-0.7.1.3