forked from Cpasjuste/uae4all2
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathHowToBuild.txt
executable file
·51 lines (40 loc) · 1.5 KB
/
HowToBuild.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
1) At first for building we need linux-console
I used speedLinux under windows
2) Install Android sdk&ndk (i unpacked it into ~/sdk directory)
https://developer.android.com/tools/sdk/ndk/index.html
https://developer.android.com/sdk/index.html
for run android environment i create and use simple script setenv-android.sh
#!/bin/sh
export ANT_HOME=~/sdk/apache-ant-1.8.2
export PATH=~/sdk/android-ndk-r10c:$PATH
export PATH=~/sdk/android-sdk-linux/tools:$PATH
export PATH=~/sdk/android-sdk-linux/build-tools/21.0.1:$PATH
export PATH=~/sdk/jdk1.7.0_03/jre/bin:$PATH
export PATH=~/sdk/apache-ant-1.8.2/bin:$PATH
now we can run android build environment via console
. setenv-android.sh
Now via Android SDK Manager (for call sdk manager via console type android). We need download latest version:
Android SDK Tools
Android SDK Platform-tools
Android SDL Build tools
Android 5.0 (API 21)
+SDK Platform (API 21)
+Google APIs (API 21)
3) Install pelya's libSDL-environment
cd ~
git clone git://github.com/pelya/commandergenius
I renamed commandergenius folder to androidsdl
4) download uae4all2 sources
git clone git://github.com/lubomyr/uae4all2
Copy folder ~/uae4all2 into ~/androidsdl/project/jni/application
cd ~/androidsdl/project/jni/application/uae4all2
. copy_src2x86.sh
. copy_src2v7a.sh
. copy_src2v7a-neon.sh
// creating symlink src to uae4all2
cd ~/androidsdl/project/jni/application
rm src
ln -s uae4all2 src
// Now we can build project (apk)
cd ~/androidsdl
./build.sh