reworked compiling. Now ships with build.sh
This commit is contained in:
parent
23eb808fa6
commit
2150e8d7af
@ -11,6 +11,9 @@ NOTE: ubuntu saucy currently only has libsdl2-dev.2.0.0 in the repositories, but
|
||||
make sure the compiled files are in your PATH (e.g. include $HOME/.cabal/bin in your $PATH)
|
||||
|
||||
install dependencies & configure app
|
||||
> cabal sandbox init
|
||||
> cabal sandbox --add-source deps/hsSDL2
|
||||
> cabal sandbox --add-source deps/hsSDL2-ttf
|
||||
> cabal install --only-dependencies
|
||||
> cabal configure
|
||||
|
||||
|
12
build.sh
Executable file
12
build.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
cabal sandbox init
|
||||
|
||||
cd deps
|
||||
./getDeps.sh
|
||||
cd ..
|
||||
|
||||
cabal sandbox add-source deps/hsSDL2
|
||||
cabal sandbox add-source deps/hsSDL2-ttf
|
||||
cabal install --only-dependencies
|
||||
cabal configure
|
||||
cabal build
|
3
deps/getDeps.sh
vendored
3
deps/getDeps.sh
vendored
@ -45,6 +45,7 @@ cabal install haddock
|
||||
echo "building hsSDL2.."
|
||||
|
||||
cd hsSDL2
|
||||
cabal sandbox delete
|
||||
cabal sandbox init
|
||||
cabal install --only-dependencies
|
||||
cabal build
|
||||
@ -54,6 +55,8 @@ for t in "hsSDL2-ttf"
|
||||
do
|
||||
echo "building ${t}.."
|
||||
cd "${t}"
|
||||
cabal sandbox delete
|
||||
cabal sandbox init
|
||||
cabal sandbox add-source ../hsSDL2
|
||||
cabal install --only-dependencies
|
||||
cabal build
|
||||
|
Loading…
Reference in New Issue
Block a user