reworked compiling. Now ships with build.sh

This commit is contained in:
Nicole Dresselhaus 2014-05-02 18:00:33 +02:00
parent 23eb808fa6
commit 2150e8d7af
No known key found for this signature in database
GPG Key ID: BC16D887851A1A80
3 changed files with 18 additions and 0 deletions

View File

@ -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) make sure the compiled files are in your PATH (e.g. include $HOME/.cabal/bin in your $PATH)
install dependencies & configure app 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 install --only-dependencies
> cabal configure > cabal configure

12
build.sh Executable file
View 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
View File

@ -45,6 +45,7 @@ cabal install haddock
echo "building hsSDL2.." echo "building hsSDL2.."
cd hsSDL2 cd hsSDL2
cabal sandbox delete
cabal sandbox init cabal sandbox init
cabal install --only-dependencies cabal install --only-dependencies
cabal build cabal build
@ -54,6 +55,8 @@ for t in "hsSDL2-ttf"
do do
echo "building ${t}.." echo "building ${t}.."
cd "${t}" cd "${t}"
cabal sandbox delete
cabal sandbox init
cabal sandbox add-source ../hsSDL2 cabal sandbox add-source ../hsSDL2
cabal install --only-dependencies cabal install --only-dependencies
cabal build cabal build