summaryrefslogtreecommitdiffstats
path: root/android/README
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-11-09 00:29:18 +0100
committerJan Holesovsky <kendy@collabora.com>2019-11-09 00:33:25 +0100
commit888a9e56ab645476471b65b351ea909c830741cd (patch)
tree77577e7bc448bc18a00b9074b55ddafb2b53696d /android/README
parentandroid: Update the branding layout. (diff)
downloadonline-888a9e56ab645476471b65b351ea909c830741cd.tar.gz
online-888a9e56ab645476471b65b351ea909c830741cd.zip
android: Back to using POCO.
It turns out that the std::filesystem is still not part of the NDK: https://github.com/android/ndk/issues/609 The NDK has the header - but not the c++fs library yet :-( Change-Id: Ic7003f71cd4730b2f34138adea3b09fe92fdbb4a Reviewed-on: https://gerrit.libreoffice.org/82336 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'android/README')
-rw-r--r--android/README32
1 files changed, 32 insertions, 0 deletions
diff --git a/android/README b/android/README
index 3ed9f01c22..eb34c511b8 100644
--- a/android/README
+++ b/android/README
@@ -33,6 +33,38 @@ build the native parts on Windows.
# install it to /opt/poco-android
PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=armeabi-v7a CC=armv7a-linux-androideabi21-clang CXX=armv7a-linux-androideabi21-clang++ SYSLIBS=-static-libstdc++ install INSTALLDIR=/opt/poco-android
+* 64bit POCO for Android
+
+ # checkout the 1.9.1 in a different location and apply the following patch:
+ --- a/build/config/Android
+ +++ b/build/config/Android
+ @@ -21,6 +21,11 @@ TOOL = arm-linux-androideabi
+ ARCHFLAGS = -march=armv7-a -mfloat-abi=softfp
+ LINKFLAGS = -Wl,--fix-cortex-a8
+ else
+ +ifeq ($(ANDROID_ABI),arm64-v8a)
+ +TOOL = aarch64-linux-android
+ +#ARCHFLAGS = -march=armv7-a -mfloat-abi=softfp
+ +#LINKFLAGS = -Wl,--fix-cortex-a8
+ +else
+ ifeq ($(ANDROID_ABI),x86)
+ TOOL = i686-linux-android
+ ARCHFLAGS = -march=i686 -msse3 -mstackrealign -mfpmath=sse
+ @@ -29,6 +34,7 @@ $(error Invalid ABI specified in ANDROID_ABI)
+ endif
+ endif
+ endif
+ +endif
+
+ #
+ # Define Tools
+
+ # configure as above and make it:
+ PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=arm64-v8a CC=aarch64-linux-android21-clang CXX=aarch64-linux-android21-clang++ SYSLIBS=-static-libstdc++
+
+ # install
+ PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=arm64-v8a CC=aarch64-linux-android21-clang CXX=aarch64-linux-android21-clang++ SYSLIBS=-static-libstdc++ install INSTALLDIR=/opt/poco-android-64bit
+
* Configure the online.git (eg. in online-android folder)
Don't forget to change --with-lo-builddir in the following: