[Libreoffice-commits] online.git: android/README
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Mar 20 14:47:04 UTC 2019
android/README | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
New commits:
commit 9d6b079e58a54931fe0584bbb09e6affe460a2b8
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Mar 20 15:46:11 2019 +0100
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Mar 20 15:46:11 2019 +0100
Tip how to cross-compile with icecream.
Change-Id: Iad797e81575fd44c51732a1c93328f833dd1b901
diff --git a/android/README b/android/README
index 02e54156e..b0ff55cb3 100644
--- a/android/README
+++ b/android/README
@@ -49,3 +49,34 @@ build the native parts on Windows.
+ Start Android Studio
+ Open this 'android' subdir as a project
+ Build from Android Studio (Build -> Make Project)
+
+== Tip: How to speed up your core.git build ==
+
+If you use icecream for parallel building, you can use it for
+cross-compilation too.
+
+ # first generate a tarball with the toolchain (once)
+ icecc-create-env ~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang ~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++
+
+And add it and the paths to the compiler as the first things to the
+autogen.input:
+
+ CC=icecc [here copy what the output of ./autogen.sh without icecream said for C compiler]
+ CXX=icecc [here copy what the output of ./autogen.sh without icecream said for C++ compiler]
+ ICECC_VERSION=/path/to/the/tarball/generated/above/955ceb546ceb7a5715bf0223ddd788fe.tar.gz
+ --with-parallelism=[amount of cpu threads in your icecream farm]
+ --enable-icecream
+ [...the original autogen.input...]
+
+So the result will look something like this:
+
+ CC=icecc /home/$USER/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 -gcc-toolchain /home/$USER/Android/Sdk/ndk-bundle/to>
+ CXX=icecc /home/$USER/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 -gcc-toolchain /home/$USER/Android/Sdk/ndk-bundle>
+ ICECC_VERSION=/local/libreoffice/android/955ceb546ceb7a5715bf0223ddd788fe.tar.gz
+ --with-parallelism=25
+ --enable-icecream
+ --build=x86_64-unknown-linux-gnu
+ --with-android-ndk=/home/$USER/Android/Sdk/ndk-bundle
+ --with-android-sdk=/home/$USER/Android/Sdk
+ --with-distro=LibreOfficeAndroid
+ --enable-sal-log
More information about the Libreoffice-commits
mailing list