fix android cross compile, working around cabal limitation

This commit is contained in:
Joey Hess 2013-02-27 15:16:52 -04:00
parent 2f4070b1db
commit 7eb5c8cb51

View file

@ -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