-
Notifications
You must be signed in to change notification settings - Fork 2
/
android-dev.sh
executable file
·29 lines (27 loc) · 1.39 KB
/
android-dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# This assumes:
# - Install the Android Developer Tools bundle (update the path below)
# - Install the Android NDK (update the path below)
# - run android and install levels 15 (my phone) and 16 (Ouya)
# - Install the Oracle JDK (update the path below)
# - echo 0x2836 >> ~/.android/adb_usb.ini
# - adb kill-server, adb start-server, adb devices
# - Install alex, ant, cabal, ghc, happy and llvm-3.2
# - Install automake-1.13
# - git clone [email protected]:neurocyte/ghc-android.git
# - In ghc-android:
# CONFIG_SUB_SRC=/usr/local/share/automake-1.13 ./build
# CONFIG_SUB_SRC=/usr/local/share/automake-1.13 ./build --x86
# - git clone [email protected]:neurocyte/foreign-jni.git
# - (edit foreign-jni/configure to make it work with dash)
# - In foreign-jni, for each of arm-linux-adroideabi- and i686-linux-android-:
# ...cabal update
# ...cabal install
# - git clone [email protected]:neurocyte/android-haskell-activity.git
# - In android-haskell-activity:
# android update project --name HaskellActivity --path . --target android-15
# ant debug
export JAVA_HOME=~/jdk1.7.0_25
export ANDROID_HOME=~/adt-bundle-linux-x86_64-20130522/sdk
export NDK_HOME=~/android-ndk-r8e
export PATH="$HOME/.ghc/android-host/bin:$HOME/.ghc/android-14/arm-linux-androideabi-4.7/bin:$HOME/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$NDK_HOME:$PATH"