office-gobmx/distro-configs
Michael Weghorn c11701c212 android: Switch from GNU binutils to support NDK 23.x, require 21.x
Relevant announcement from revision history for NDK 23 [1]:

> * GNU binutils, excluding the GNU Assembler (GAS), has been removed. GAS
>   will be removed in the next release. If you are building with
>   -fno-integrated-as, file bugs if anything is preventing you from
>   removing that flag.

Therefore, switch from uses of GNU binutils to the
corresponding LLVM tools instead.

NDK 20.x doesn't provide `llvm-ranlib` yet, so bump the minimum
version to 21.x.

Also drop the previous uses of `ANDROID_BINUTILS_PREBUILT_ROOT`,
which appear to no longer be relevant by now.

    commit 4082a18406
    Date:   Wed Nov 22 23:08:06 2017 +0100

        android: use unified headers and llvm-c++ STL (x86) with NDK 16

        gnustl (and others) are to be removed in future versions of the ndk
        also bump gradle and build-tools to current versions along with it

        arm unfortunately crashes with llvm-c++, so keep with gnustl for now/fix
        that later

that introduced one of those uses mentions issues on ARM, but building
and running the app at least on my 32-bit ARM device (Samsung Galaxy S4 I9505,
LineageOS 17.1/Android 10) didn't show any issues in a quick test
with this change in place.

Update the Jenkins config to switch from the now no longer
supported NDK 20.1.5948944 to 23.2.8568313 for which building and
running the app has been tested on devices for all of the four
supported architectures with upcoming change
Change-Id I9ea714255faf29d50bb5f8e206f13495637da867
"android: Require NDK 23 and use default linker lld" in place
on top, s. that one's commit message for more details.
Note however that the NDK version will be further updated to use
NDK 25 in upcoming change
Change-Id Ib8e65f433ee89ff1bc12432722570bf8f9f7ed85
("android: Support NDK 24.x and 25.x, use NDK 25 for Jenkins").

[1] https://developer.android.com/ndk/downloads/revision_history
[2] https://lists.freedesktop.org/archives/libreoffice/2023-January/089878.html

Change-Id: I7645f8025d42f0fa384b5bceb31bb4b1c0a44cb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146118
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Michael Weghorn <m.weghorn@posteo.de>
2023-02-16 20:31:39 +00:00
..
Jenkins android: Switch from GNU binutils to support NDK 23.x, require 21.x 2023-02-16 20:31:39 +00:00
CPAndroid.conf Introduce INCLUDE: in the distro-configs... 2020-02-11 20:25:32 +01:00
CPAndroidAarch64.conf Introduce INCLUDE: in the distro-configs... 2020-02-11 20:25:32 +01:00
CPAndroidBranding.conf Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
CPAndroidX86.conf android: Add a CP x86 configuration too. 2020-07-01 18:00:09 +02:00
CPAndroidX86_64.conf android: Add a CP x86-64 configuration. 2020-06-26 11:27:08 +02:00
CPLinux-LOKit.conf Add distro-configs/CPLinux-LOKit from the co-22.05 vendor branch 2022-10-24 14:08:19 +02:00
LibreOfficeAndroid.conf Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
LibreOfficeAndroidAarch64.conf Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
LibreOfficeAndroidX86.conf Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
LibreOfficeAndroidX86_64.conf Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
LibreOfficeCoverity.conf tdf#150452: Revert "tdf#130795 use concurrent hashmap in SharedStringPool" 2022-08-17 16:59:14 +02:00
LibreOfficeFlatpak.conf tdf#150452: Revert "tdf#130795 use concurrent hashmap in SharedStringPool" 2022-08-17 16:59:14 +02:00
LibreOfficeHaiku.conf make --disable-odk the default 2021-05-18 08:47:09 +02:00
LibreOfficeiOS.conf Try without --disable-database-connectivity when building for iOS 2021-07-27 10:50:20 +03:00
LibreOfficeiOS_Sim.conf Try without --disable-database-connectivity when building for iOS 2021-07-27 10:50:20 +03:00
LibreOfficeLinux.conf --enable-lto for distro-configs/* that already use --enable-mergelibs 2021-10-14 15:58:07 +02:00
LibreOfficeMacOSX.conf make --disable-odk the default 2021-05-18 08:47:09 +02:00
LibreOfficeOnline.conf --enable-lto for distro-configs/* that already use --enable-mergelibs 2021-10-14 15:58:07 +02:00
LibreOfficeOpenBSD.conf ucb: remove --with-webdav=neon 2021-12-15 15:24:52 +01:00
LibreOfficeOssFuzz.conf stop using removed ---with-idlc-cpp=cpp argument 2022-06-14 15:19:38 +02:00
LibreOfficeVanillaMacAppStore.conf Drop unused CT2N extension 2022-04-26 10:08:30 +02:00
LibreOfficeWASM32.conf Need --disable-gen for the Qt5-based WASM LibreOffice now 2022-12-06 10:39:52 +00:00
LibreOfficeWin32.conf --enable-lto for distro-configs/* that already use --enable-mergelibs 2021-10-14 15:58:07 +02:00
LibreOfficeWin64.conf --enable-lto for distro-configs/* that already use --enable-mergelibs 2021-10-14 15:58:07 +02:00
LibreOfficeWinArm64.conf --enable-lto for distro-configs/* that already use --enable-mergelibs 2021-10-14 15:58:07 +02:00
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00

Pre-canned Distribution Configurations

These files are supposed to correspond to the options used when creating the Document Foundation (or other "canonical") builds of LibreOffice for various platforms. They are not supposed to represent the "most useful" options for developers in general. On the contrary, the intent is that just running ./autogen.sh without any options at all should produce a buildable configuration for developers with interest in working on the most commonly used parts of the code.

See https://wiki.documentfoundation.org/Development/ReleaseBuilds for how TDF builds make use of these switches. (Especially, since --with-package-format now triggers whether or not installation sets are built, all the relevant *.conf files specify it, except for LibreOfficeLinux.conf, where the TDF build instructions pass an explicit --with-package-format="rpm deb" in addition to --with-distro=LibreOfficeLinux.)

(Possibly the above is a misunderstanding, or maybe there never even has been any clear consensus what situations these files actually are intended for.)

The files contain sets of configuration parameters, and can be passed on the autogen.sh command line thus:

./autogen.sh --with-distro=LibreOfficeFoo

Contrary to the above, in the Android case the amount of parameters you just must use is so large, that for convenience it is always easiest to use the corresponding distro-configs file. This is a bug and needs to be fixed; also configuring for Android should ideally use sane (or the only possible) defaults and work fine without any parameters at all.