fix android cross compile, working around cabal limitation
This commit is contained in:
parent
2f4070b1db
commit
7eb5c8cb51
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -163,8 +163,12 @@ osxapp:
|
|||
# Cross compile for Android.
|
||||
# Uses https://github.com/neurocyte/ghc-android
|
||||
android:
|
||||
cabal configure
|
||||
# cabal cannot cross compile with custom build type, so workaround
|
||||
sed -i 's/Build-type: Custom/Build-type: Simple/' git-annex.cabal
|
||||
$$HOME/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/cabal configure -f'Android Assistant -Pairing -Webapp'
|
||||
$(MAKE) git-annex
|
||||
sed -i 's/Build-type: Simple/Build-type: Custom/' git-annex.cabal
|
||||
|
||||
androidapp:
|
||||
$(MAKE) android
|
||||
|
|
Loading…
Reference in a new issue