100 Commits
Author SHA1 Message Date
Tor Lillqvist 50f1498332 Remove ten year old file that is unused
Whatever workflow it was used for back in the days does probably not
exist any longer.

Change-Id: I4e29e1acde2a630e461d43b3f4b2b7fa6abd5031
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198538
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-02-02 14:46:56 +01:00
Tor Lillqvist 5cdf540c72 Revert "Set up pkg-config environment variables when cross-compiling to Linux"
This reverts commit f63f00c611.

Change-Id: I436236e17cd3d2387b905a02c972b70e2456929f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198155
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-26 18:29:59 +01:00
Tor Lillqvist caccacb1b8 Revert "Move the CROSS_COMPILE, USE_X64, and CPU_ARCH to be make command line args"
This reverts commit c609f555e7.

Change-Id: I436236e17cd3d2387b905a02c972b70e2456929e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198154
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-26 18:29:50 +01:00
Tor Lillqvist e022e99557 Revert "Fixes for Python cross-compilation, Linux to Linux at least"
Nah, this is too complicated, and I am not interested enough.

This reverts commit 942afbd439.

Change-Id: I436236e17cd3d2387b905a02c972b70e2456929d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198153
Tested-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-26 18:25:48 +01:00
Tor Lillqvist 942afbd439 Fixes for Python cross-compilation, Linux to Linux at least
When not using a system Python, set PYTHON_FOR_BUILD to point to the
python script in the instdir_for_build/program folder. Make sure that
script gets installed by adding it to gb_BUILD_TOOLS_executables and
by adding pyuno to the cross_toolset modules. Make also the
SYSTEM_PYTHON boolean flag visible to the cross-build (in the normal
way, as SYSTEM_PYTHON_FOR_BUILD).

When cross-compiling Python to Linux, pass some ac_cv_* settings that
can't be determined at compile time.

Change-Id: I5224966698dca03df9545f5552671f0dce00b4ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197540
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Jenkins
2026-01-23 11:54:21 +01:00
Tor Lillqvist c609f555e7 Move the CROSS_COMPILE, USE_X64, and CPU_ARCH to be make command line args
Instead of passing them in the environment. Works better for
cross-compilation at least from Linux to Linux.

Change-Id: I46345f270fdcccd0a37370b63c1363281efc5607
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197539
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-19 08:20:21 +01:00
Tor Lillqvist d3d7943ddf Don't do CppunitTest_connectivity_mysql_test unless ENABLE_MARIADBC
It won't even be attempted, make will complain:
.../solenv/gbuild/ComponentTarget.mk:81: *** No LIBFILENAME set at component target: .../workdir/ComponentTarget/connectivity/source/drivers/mysqlc/mysqlc.component. Stop.

Change-Id: I7be5953fb40bfc2034ed4ddf348e1c5e68a85b19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197256
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-14 14:25:45 +01:00
Tor Lillqvist 84fb1ab69d Using the avmedia library is not optional in Library_sc.mk either
Change-Id: Iff278fe5682bbfa04952bf4917765fa07c9835e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194579
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197099
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Jenkins
2026-01-12 19:51:23 +01:00
Tor Lillqvist 33ec31c240 Avoid LOKClipboard harder on iOS
Change-Id: I2710a7537594c486878a68c630f762a24ac81c49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133017
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146739
(cherry picked from commit 069aae6be68d67b45222740de01467d11f15adfb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146800
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2023-02-12 18:35:44 +00:00
Tor Lillqvist 5025a56db9 Guard against no HAVE_FEATURE_AVMEDIA in one more place
This was said to fix build of the iOS app some years ago in a vendor
branch, but unclear about that now, it seems to build from master at
the moment anyway? Anyway, this still probably makes sense.

Change-Id: I4a9e6f18e7b17664e5aed36233d5ccde44cf1194
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141796
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146742
Tested-by: Jenkins
2023-02-10 08:49:01 +00:00
Tor Lillqvist c526b4a58e Simplify selection of iOS SDK, like we now do for macOS
Change-Id: I850a0214d12ef6b5b9a289b34a1467dfe9d35d17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144213
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-12-15 11:45:30 +00:00
Tor Lillqvist 63bad2bf8d Fix regression in the iOS app (and possibly the Android and GTK apps)
The problem was caused by my remote font downloading changes. We need
to be more careful in lo_initialize() and libreofficekit_hook_2() to
distinguish whether the code is called from "normal" Online (with
"pre-initialisation" through lok_preinit_2()) or otherwise, for
instance the iOS app, where not pre-initialisation is done.

Sadly, this fix makes state handling in init.cxx even more complex
with one more static Boolean flag.

Change-Id: I2a8fa96740eb79725aa162cf7adc86d49a8ba603
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133175
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133196
Tested-by: Jenkins
2022-04-20 14:06:51 +02:00
Tor Lillqvist e889c9b8bf Make slideshow touch gestures work again in the mobile apps
Need to s/lool/cool/ here, too.

Change-Id: Ib6762f196ca2b1c2e8735c6ff3e591164d34fb0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132204
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-03-28 15:50:00 +02:00
Tor Lillqvist 6bcf007634 We don't want or need any LOKClipboard on iOS
Try to make the code more like in the co-2021 branch, where copy/paste
between Collabora Office and other iOS apps currently works again, in
both directions, both for text and images. Sadly something is broken
or missing either here in core or in online as it doesn't fully work
in a Collabora Office based on the master branch of core, even after
this commit, though.

We use only the system clipboard on iOS. (It is actually called the
"pasteboard" in Apple's operating systems.) The code to interface with
the system clipboard is in vcl. It has worked fine to copy and paste
between the Collabora Office iOS app and other iOS apps without any
LOKClipboard being involved. If LOKClipboard is used it doesn't work
at all.

Change-Id: I0d3b4e3eabe17b633390e071701225e1d356a75a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128037
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2022-01-06 13:52:00 +01:00
Tor Lillqvist 47aabde053 Make the tdf#97983 changes to BASIC optional
If you want to keep the string to floating point conversion semantics
in BASIC as they were in LibreOffice 6, you can either set the
LIBREOFFICE6FLOATINGPOINTMODE environment variable to some non-empty
value, or set the org.openoffice.Office.Scripting/Basic/Compatibility/
UseLibreOffice6FloatingPointConversion flag in the Expert
Configuration. (Or use a registry modification file with that effect.)

Adapt the relevant unit test accordingly. Thanks to Mike Kaganski for
showing how to access the setting in the LibreOffice registry from
Basic.

Change-Id: I13d6d5d834e1bb81ef8df489db2b1da79f01dfc5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125756
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-12-09 12:06:49 +01:00
Tor Lillqvist e37c97bc1d Warn harder about unknown constructors and factories on iOS in Xcode
Use NSLog() and not just SAL_WARN(). There are so many irrelevant
SAL_WARN() warnings displayed that these ones that can be extremely
relevant are easily missed. I typically run the app in Xcode with
SAL_LOG=-WARN.

(Such warnings are typically caused by something missing from the
solenv/bin/native-code.py.)

Change-Id: I4ab16f4f652ac34319021c9427e2e9f911ee29e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122721
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122756
Tested-by: Jenkins
2021-09-28 10:59:20 +02:00
Tor Lillqvist 10e809e139 More constructors needed for the DISABLE_DYNLOADING case
Fixes https://github.com/CollaboraOnline/online/issues/3293.

Change-Id: I3c0eaedf47321f0e81be4ac52c66f8e55381ac32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122720
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122755
2021-09-28 10:59:05 +02:00
Tor Lillqvist 7527afeb30 Don't use the macOS system German spelling dictionary for Swiss German
The system German dictionary accepts 'ß' which is not used in Swiss
Standard German but completely replaced with 'ss'. We assume that the
LibreOffice German dictionary is installed, too. It has correct
spelling for de_CH.

It would be good if we knew in the macosxspell code whether the
LibreOffice German dictionary installed, and act correspondingly. But
figuring that out seems more complicated than what I am willing to
spend on this for now.

Change-Id: I380d7734cea34a2408d9ed20a8c3d9efe6a8fea2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115690
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-05-17 09:25:07 +02:00
Tor Lillqvist d5e215289b Minor improvement
Change-Id: I0814fe7e732715e73ad56e3b2c91618ba04ae35b
2021-03-13 09:42:59 +02:00
Tor Lillqvist 22e89d2ccd tdf#140332: Can't use System V semaphores in a sandboxed macOS process
See
https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html
, "Note: System V semaphores are not supported in sandboxed apps".

So use POSIX semaphores instead.

Change-Id: I37c910cf13b868ab15fe31f90e42d24a9a24eeb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111239
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-02-19 22:45:28 +01:00
Tor Lillqvist e2fcbac505 Simplify error handling
There were a couple of weird things in this script. Firstly, the
script redirected stdout and stderr from each invocation of codesign
separately into a log file. (Several differently named log files.) But
those log files were never displayed.

Secondly, the script did "set -e" at the start. Thus, if a codesign
invocation returned non-zero (error) exit status, any code to check
the exit status and possibly display the log file would not be
executed anyway.

Simplify thusly:

Don't pass --verbose to codesign. Then if nothing goes wrong, it is
silent. That is The Unix Philosophy, right?

Don't redirect codesign stdout and stderr to a log file (that would be
removed if codesign didn't fail). Just let any error message of
warning from codesign go to the script's stderr or stdout.

If codesign fails, just exit. Error messages will have been written to
stderr already. No log files to display or remove.

Don't use set -e. Instead if a codesign invocation fails, just exit.

The intent is that in the normal case, this script will be totally
silent.

Change-Id: Ic6081c418e4c564be768e30bf52b8196ee59f061
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109696
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-20 17:28:32 +01:00
Tor Lillqvist 189b68c2ba Fix comment: Division, not multiplication
Change-Id: I901721f18f5e536bcf7c59e08b0a0f66ccfc6190
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108672
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-04 17:22:15 +01:00
Tor Lillqvist c98f43fc0e Bin a few unused forward declarations
Change-Id: I1f0b8938f2174f9b8eee01714ea176fa4df38504
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107715
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-12-14 17:10:58 +01:00
Tor Lillqvist 5b02196583 Add comments wondering what some magic numbers might mean
Change-Id: Iece65c9d96561abc0a97726cd4eb642317dc0f9c
2020-12-10 18:59:32 +02:00
Tor Lillqvist 796c7f6126 More NSS fixes for macOS on arm64
I think the attempt to set CPU_ARCH in
external/nss/ExternalProject_nss.mk does not actually work. And
anyway, it should be arm64 for macOS on arm64, not aarch64.

Now NSS configury correctly finds the APIs present in the system when
building for macOS on arm64. Previously, it attempted to compile the
test snippets for PowerPC... which caused for instance dladdr() not to
be found, which caused the softokn3 loading to fail.

(It's somewhat surprising that the NSS configury still has "support"
for MacOS on PowerPC... Do people really build latest and greatest NSS
on such machines? Or is it just a leftover and the NSS people never,
ever, remove anything?)

Change-Id: I0dc35df0460db7997efcfdf92594fd8ae352aa49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107316
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-12-07 00:01:35 +01:00
Tor Lillqvist 9ec7770190 Add source files from dbaccess/source/ui/misc
(Xcode also insists on moving a couple of other lines around, oh
well.)

Change-Id: I7b295f51ca5b38bfcace464f9d06bfe2d93de066
2020-12-06 18:54:48 +02:00
Tor Lillqvist 606b731289 Fix some bogus paths
Note that what osx/README says still holds. This Xcode project is for
making debugging easier only.

Change-Id: I8ebbad2a2de5366616ad7304125bdd05ae001489
2020-12-06 14:29:37 +02:00
Tor Lillqvist ecb916667b Remove remaining bogus use of objc_msgSend()
Follow-up to 5bf61e98b0.

Should avoid crashes when running as arm64 code on macOS on arm64.

Change-Id: Id05d182684df82c8a7bf09f6bb7e8ccb01997b62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107259
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-12-05 20:30:01 +01:00
Tor Lillqvist 5bf61e98b0 Fix crash or hang on macOS on arm64 when opening a file picker
There is no reason to not mention the NSOpenSavePanelDelegate protocol
that AquaFilePickerDelegate implements.

The way we used objc_msgSend() caused a crash or hang. (I saw both,
depending on whether the code was built for debugging or not). For
some reason we used to cast it to a function with variadic parameters
like:

    reinterpret_cast<id (*)(id, SEL, ...)>(objc_msgSend)(
        m_pDialog, @selector(setDelegate:), m_pDelegate);

This does not work in arm64 code on macOS. (See
https://developer.apple.com/documentation/apple_silicon/addressing_architectural_differences_in_your_macos_code?language=objc
, the "Don't Redeclare a Function to Have Variable Parameters"
section.)

We could have replaced the ellipsis with the actual type of the first
real parameter in this call, or just "id" would have worked fine. But
it is much simpler to just do what we mean directly:

    [m_pDialog setDelegate:m_pDelegate];

I need to look through the code for other places where we have used
objc_msgSend() in a similar fashion.

Change-Id: Ia93b2007ed8f263eaf99d604a3c88e857efbb421
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107257
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-12-05 18:29:44 +01:00
Tor Lillqvist a470932949 Fix Firebird build on macOS on arm64
Must set RAW_DEVICES_FLG=N for this architecture, too. Make the
prefix.darwin_arm64 match the x86_64 one. Don't bother defining ARM64,
just check for __aarch64__.

Change-Id: I9de67493cb159ce97a46cdd1974b04753518c703
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106716
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-11-27 00:16:45 +01:00
Tor Lillqvist 0b95a5f9d5 Make python3 build on macOS 11, including for arm64
There is no /usr/lib/libz.dylib any longer in macOS 11.

No idea whether it works (especially on arm64), but that is another
issue.

Change-Id: I92ac0c500388730eca0be4766f07b1af2d2808e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105897
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-11-15 16:54:02 +01:00
Tor Lillqvist cef6b619da Use save_CFLAGS etc in a uniform way
Restore the old CFLAGS (etc) as soon as possible. Always use the same
variable names for the saved values.

Change-Id: I523bbf66ec5400d24993b7e11e444bb63d61751e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105130
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-11-01 13:45:27 +01:00
Tor Lillqvist 92f80057d3 Find ODBC headers when building for Windows on WSL, too
Change-Id: I3a05def839c14d59545c4891418577ed36f2b8cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105099
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-11-01 10:55:08 +01:00
Tor Lillqvist 7ca79cfca0 Set CPPFLAGS instead of the INCLUDE environment variable
INCLUDE is not exported from WSL to Win32 programs without including
it in the list of environment variable names in the WSLENV environment
variable, and I think we want to minimize the number that need to be
mentioned there.

Should not affect Cygwin builds.

Change-Id: I0af480873badac446305e396b69eec360eb8a270
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105098
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-10-31 11:39:46 +01:00
Tor Lillqvist 0a08f981a6 Allow also --disable-python on macOS
Change-Id: I27cdd86a730a042d6e846c90319c306f5a3b35ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98159
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-06 10:12:40 +02:00
Tor Lillqvist b9cd758f71 There is no QuickTime framework
The reference was a leftover from 32-bit times.

Change-Id: Ie453a4c644787a49f8742eab4b4ea9d49cddf32d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98175
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-06 08:57:26 +02:00
Tor Lillqvist a292d2e43f Avoid warning about deprecation in macOS 11.0
Change-Id: Ie1a7e19093b439eb133632ee881e1e3dbe58132d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98176
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-06 01:10:46 +02:00
Tor Lillqvist 02d931a59e When cross-compiling to DESKTOP, just make "build" for the build platform
Trying to fine-tune that exactly what is needed but nothing else is
built is very painful.

For instance, on macOS, if you build gengal but not soffice, you end
up with this error when trying to run the built gengal, because there
is no Info.plist in the app bundle in instdir_for_build: "No
Info.plist file in application bundle or no NSPrincipalClass in the
Info.plist file, exiting"

Change-Id: I63d766f0e7e72f55454d16c72c32e153cf976443
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98177
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-06 01:07:35 +02:00
Tor Lillqvist 5fe12dd54a Use correct location for the config.{guess,sub} in the postgresql tarball
Change-Id: Iccec53f67ab6c9e7920354f6a26c81300c1bee48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98097
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 20:34:50 +02:00
Tor Lillqvist 25c1a9be77 Use up-to-date config.{guess,sub} for external/xmlsec, too
Change-Id: Ib6beab0aa9bf72af83520020eeca6e20a9ecc3df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98096
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 12:43:12 +02:00
Tor Lillqvist 16983f05df Initial attempt at macOS on arm64 support for OpenSSL
Sadly the existing arm64 assembler files in OpenSSL use a syntax that
Apple's clang doesn't accept.

And yeah, ideally we should not use either NSS or OpenSSL on macOS,
but native APIs for the functionality in question. Trying to make
everything look like Linux is a bone-headed approach.

Change-Id: Ib3f137ac73329b92e82c654d1277ee21f5f81b37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98095
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 12:23:22 +02:00
Tor Lillqvist 6420c1edbf Bin leftover support for OS X on PowerPC
Change-Id: I2108aca1a7ce12fc0b028124170df502a6c46e60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98012
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 09:12:46 +02:00
Tor Lillqvist 1c4aa5c2d5 We don't build OpenSSL for iOS but if we did, it would be arm64
Just for completeness. Did not check whether we actually could build
OpenSSL for iOS. As we have managed without so far there probably is
no need.

Change-Id: Icd41622e7336e723ccd5a3157e956c43f6f92a76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98011
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 09:12:17 +02:00
Tor Lillqvist 95856ba49d Use up-to-date config.{guess,sub} for external/curl, too
Change-Id: I65741410e9ba14326a6ad7a676d1dfb10006e34f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97988
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 09:11:11 +02:00
Tor Lillqvist 2869eacfeb Set CROSS_COMPILE=1 when cross-compiling nss
Change-Id: Iad826eb83e4c49078e6c668661446b5b70e6a981
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97987
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 09:10:19 +02:00
Tor Lillqvist 429f5c788a Be more generic for CPUNAME=ARM64
It's used not just for iOS but can be macOS too.

Also, nss wants to call it CPU_ARCH=aarch64.

Change-Id: I6398c3bf1409f2ccf16b0d154ad7c2b56f493b15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97986
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 09:09:51 +02:00
Tor Lillqvist f019f4aa6e We don't actually build nss for iOS, but if we did, it would be for arm64
iOS is 64-bit only since long.

Change-Id: Ic0d9f69764951f420be10947c5b8889a3f95962c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97985
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 09:09:12 +02:00
Tor Lillqvist bb649c3156 Use up-to-date config.{guess,sub} for external/nss, too
Change-Id: I387aba22b90ab1bde1ae3659ea06a5838c1c829d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97983
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 09:08:37 +02:00
Tor Lillqvist 86884f876e For macOS on arm64, be sure to use HOST_PLATFORM=arm64-apple-darwin
(That is for the external projects.)

Change-Id: I709ff37ebca304f862ff94bdb1c6e6035f5cda77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97981
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-05 00:01:40 +02:00
Tor Lillqvist 50889effe5 Remove leftovers for OS X on PowerPC
Change-Id: Id9d553e58635c2fa7414108467ff7d22f5c74c41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97980
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-04 22:02:07 +02:00
Tor Lillqvist ca1df564c3 Let's not run on hope
Change-Id: If2fb2c55d53321ec2e5beff0ade9974c02811f7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97120
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97408
Tested-by: Jenkins
2020-06-30 08:18:52 +02:00
Tor Lillqvist 4c14c88cc6 Avoid crash with multiple documents open in the iOS app
Also add a FIXME. Just 'hoping' is not good enough. But yeah, much of
this code indeeed works mostly by accident.

Change-Id: Ic6bcbc10229a0b7cdd8d696794efe152fca4faea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97117
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97407
Tested-by: Jenkins
2020-06-29 23:24:04 +02:00
Tor Lillqvist 802161a505 More WIP work for macOS on Apple Silicon
If cross-compiling to a DESKTOP platform, just use
RepositoryModule_host.mk on the build platform, too.

Change-Id: Icd3f3081e5af0c7cda95e9bce7572d37567d4f6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97356
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-29 08:49:11 +02:00
Tor Lillqvist baab4f890c Initial WIP steps for building for macOS on Apple Silicon
Don't use $host_os="darwin" for both macOS and iOS depending on
$host_cpu. Soon macOS will run on either x86_64 or arm64. Instead, use "darwin"
(or "macos") for macOS and "ios" for iOS.
Some other early changes for arm64-apple-macos, too.

Change-Id: Id89987d854ceba2cd87c6222db2081ccdec0c73e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96976
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-29 08:48:28 +02:00
Tor Lillqvist 92859fafda Accept iOS SDK 14.0
Change-Id: If2d049c59ba4c10aa3c9d42496880b7d6e3fc591
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96918
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-23 09:51:23 +02:00
Tor Lillqvist b31d936944 Use xcrun python3 to find the python3 also on Macs with older Xcode
There is no /usr/bin/python3 on those. With a current Xcode, it is the
python3 that comes with Xcode that /usr/bin/python3 runs anyway.

Change-Id: Iaee3d030337d6dfc37b67852a492b054fb4b9fee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96062
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96858
Tested-by: Jenkins
2020-06-22 17:57:51 +02:00
Tor Lillqvist 65b5a9848b tdf#128502: Avoid potential crash in mobile app with multiple open documents
Not sure if actually needed, but can hardly harm.

Change-Id: Ibb819818db40b2f086e5c1f2330a7f8f2fcc1727
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95148
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-06-22 16:24:40 +03:00
Tor Lillqvist 04ca42f87b Make it possible to just build the native code for Android, no Java bits
Change-Id: Ic25b8d72c9e60c0bee04765d51565c2864ec25ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95850
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-11 06:48:01 +02:00
Tor Lillqvist a3b65fdb43 Use equal number of leading and trailing context lines in patch
Change-Id: Id9fbf34a4ad17aa4edcabaa232b8a4e98dfcb847
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95849
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-10 09:25:54 +02:00
Tor Lillqvist 236adff64d Enable cross-compilation of xmlsec on macOS (without pkg-config)
Change-Id: If08dde33dbf19afc9ce82bfa42412a642187a56f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95848
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-10 00:09:05 +02:00
Tor Lillqvist b2a7703bec No owncloud-android-lib if we don't want to use Java at build time
Experimental. Let's see whether it makes sense to not use Java when
building the LO core for the (newer, Online-based) Android app.

Change-Id: I119861704d02bbfaa0cfd9f72c7b437f1730e48e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95847
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-09 15:09:31 +02:00
Tor Lillqvist 37c9f427cb Use equal number of leading and trailing context lines in patch
Change-Id: Ic2625e561515b9ec3bd320ad4e61133e3eb37695
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95846
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-06-09 06:39:36 +02:00
Tor Lillqvist bda60c9b1c tdf#128502: Remove assertions that fire for gtktiledviewer on two docs
If you run gtktiledviewer so that it opens a spreadsheet and a text
document these assertions would fire.

In each case the assertion is followed by code that just returns if
the asserted condition doesn't hold, so it is unlikely that this
change will break anything.

There sure will be a lot of further changes needed to make such a use
case work. (For starters, editing either of the two documents does not
work.) But let's do it step by step.

Change-Id: I4063dbbcac7c77b57e1f4cb3f05bd5096c08c0fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95037
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-05-28 16:11:42 +02:00
Tor Lillqvist 3cbcaa8d36 Use equal number of leading and trailing context lines in patch
Change-Id: I67763a5d612b66f61ed8a60c6331c85cc88f2b85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92789
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-23 19:09:24 +02:00
Tor Lillqvist 95747c6307 Use equal number of leading and trailing context lines in patch
At least the patch program on macOS seems to require it.

Change-Id: I9943134c7fb672226cbde52e35ef78f74f060ed0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92756
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-04-23 15:21:53 +02:00
Tor Lillqvist d4311614ff Add the EPUB and XMLOasis export filter constructors
Change-Id: I8872a9dc81cdccb9cd8809e819184c3119fc358c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92119
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92133
Tested-by: Jenkins
2020-04-14 08:15:15 +02:00
Tor Lillqvist f0734854fe Add libepubgen
Change-Id: I2c3d19dff2da99b030f6a7e1a8b62be509e073da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92118
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92132
Tested-by: Jenkins
2020-04-14 08:14:52 +02:00
Tor Lillqvist faa8aa1e72 Use DBG_UTIL instead of OSL_DEBUG_LEVEL for the OOX dumping stuff
We want it to be possible to compile an arbitrary subset of the source
files for debugging. DBG_UTIL, on the other hand, has to be consistent
across the whole build. We should not use OSL_DEBUG_LEVEL to switch
(internal) API on/off.

Change-Id: Ia5111a36326ad7ad4c72d9e8f7ad88c8dbe8e272
Reviewed-on: https://gerrit.libreoffice.org/72616
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2019-05-20 20:28:22 +02:00
Tor Lillqvist 9f8373817e Current ICU version is 63
Change-Id: I126dbbec9fb6cbb19f848d8317002c69b407a36b
2019-02-28 20:08:06 +02:00
Tor Lillqvist b2adc12e88 There is no --disable-ext-mariadb-connector option any longer 2019-02-25 15:42:35 +02:00
Tor Lillqvist 47c4984172 Don't use the non-public fdatasync() API when sandboxed on macOS
Change-Id: I9e36cb78e3e945f6531a31e0ddf73d9c8d655f7d
2019-02-21 10:45:37 +02:00
Tor Lillqvist 993913469e Add some pondering about code of questionable provenance in a comment
Change-Id: I20b3c8ba0ae4018307a97150440c708cfa3edc40
2018-12-26 13:31:16 +02:00
Tor Lillqvist ef9e7c8326 Revert adding the tanslateGet() and translateNGet() API to LibreOfficeKit
Will handle it another way instead that isn't so visible and annoying.

This reverts commit 5f0dda8e9f.
This reverts commit 4f1a341bc3.

Change-Id: If456d2792a5f2793ee6337898aaa4a55637f8522
2018-12-13 13:20:30 +02:00
Tor Lillqvist ba17d2e3c1 Bin also leftover comment
Change-Id: I7cb9168843d6b8996d32d37b46330656ffe9cb25
2018-12-10 01:30:54 +02:00
Tor Lillqvist 54c2e3c83a Don't create temp file in save destination folder when sandboxed
In a sandboxed environment we don't want to attempt to create
temporary files in the same directory where the user has selected an
output file to be stored. The sandboxed process has permission only to
create the specifically named output file that the user chose in the
system file dialog in that directory.

Change-Id: I65274b4c433bd66b436429bea4b287a0505b72c9
2018-11-22 22:03:31 +02:00
Tor Lillqvist bee3790d54 We now use a fixed name ICU data file in the iOS app
That makes it much easier to use the same Xcode project file when
building against different versions of LibreOffice, with different ICU
data files. The configure script in the "online" directory creates a
ICU.dat symlink to the ICU data file (with a name like icudt60l.dat in
a 6.0 branch, or icudt63l.dat in a current master) in the LibreOffice
build directory, and that is what gets copied into the app bundle.

Change-Id: Ibe2ca85f66e2d4973d6ba3c52fc4d60e113d8f9a
2018-11-02 00:35:10 +02:00
Tor Lillqvist a40b31b6b1 Add some colour to a sample odt file
Change-Id: If4dc6458d9c5fb3b574c1bb55196a5086aff3365
2018-10-02 17:53:01 +03:00
Tor Lillqvist d48eb7255d Avoid unused function in the !HAVE_FEATURE_SCRIPTING case
Change-Id: I5ef5c1ce2be3de7390322a4f4f7b78a484fd7396
2018-09-19 13:37:47 +03:00
Tor Lillqvist b6fa941a62 Avoid unused functions in the !HAVE_FEATURE_SCRIPTING case
Change-Id: I4b3cb1d696adb7f9a6f35b8529e49d55bd5d957b
2018-09-19 13:21:56 +03:00
Tor Lillqvist 83dd72cb85 Avoid unused function in the !HAVE_FEATURE_SCRIPTING case
Change-Id: Ic41be9447a8ac068d9616252ad3b17451234956e
2018-09-19 13:19:23 +03:00
Tor Lillqvist 4a82791737 iOS SDK 12.0 is the current now
Also, I don't see why we would want to use -miphoneos-version-min=12.0
just because we build against the 12.0 SDK. Use 11.0 as the minimum
runtime iOS version for now.

Change-Id: I36b9696ce367249e7e8d0a51ee61791e32972390
2018-09-19 13:19:22 +03:00
Tor Lillqvist 7d6be61a62 Re-think cppu::throwException() and the C++/UNO bridge on iOS
It seems that on iOS, where we don't have any Java, Python, BASIC, or
other scripting, the only thing that would use the C++/UNO bridge
functionality that invokes codeSnippet() was cppu::throwException().

codeSnippet() is part of what corresponds to the code that uses
run-time-generated machine code on other platforms. We can't generate
code at run-time on iOS, that has been known forever. Instead we have
used some manually written assembler to handle it instead. We used to
have a Perl script to generate a set of code snippets for different
cases, different numbers of parameters of the called function and
whatnot, but that went away at some stage some year ago. (It is
unclear whether that broke the C++/UNO bridge on iOS, or whether the
stuff continued to work even after that.)

Anyway, this handwritten assembly, or the manual construction of
internal data structures for exceptions, or something else, seemed to
have bit-rotten. Exceptions thrown with cppu::throwException() were
not catchable properly any longer.

Instead of digging in and trying to understand what is wrong, I chose
another solution. It turns out that the number of types of exception
objects thrown by cppu::throwException() is fairly small. During
startup of the LibreOffice code, and loading of an .odt document, only
one kind of exception is thrown this way... (The lovely
css::ucb:InteractiveAugmentedIOException.)

So we can simply have code that checks what the type of object being
thrown is, and explicitgly throws such an object then with a normal
C++ throw statement. Seems to work.

Sadly the cppu::getCaughtException() API still needs some inline
assembly in the C++/UNO brige. That seems to work though, knock on
wood.

This commit also adds a small "unit test" for iOS, copied from
cppuhelperm to ImplSVMain(). Ideally we should not copy code around of
course, but have a separate unit test app for iOS that would somehow
include relevant unit tests from source files all over the place.
Later.

Change-Id: Ib6d9d5b6fb8cc684ec15c97a312ca2f720e87069
Reviewed-on: https://gerrit.libreoffice.org/60506
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2018-09-15 07:54:03 +02:00
Tor Lillqvist 14a58a5e55 Return share/config/soffice.cfg as it was, as I think the code expects
Not sure how it worked in LibreOfficeLight.

Change-Id: I0991b13a7538581642f530bf45a1bba1b1b644d5
Reviewed-on: https://gerrit.libreoffice.org/60505
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2018-09-14 18:53:21 +02:00
Tor Lillqvist 5aec06a8f1 Revert "iOS, remove unused script."
It can be useful.

This reverts commit b140f92531.
2018-09-14 14:52:28 +03:00
Tor Lillqvist a754ce416c Re-introduce code to use the ICU data file in the iOS app bundle
We used to have this code snippet in the TiledLibreOffice app back in
the days. Then in LibreOfficeLight it was lost and forgotten (?).

Clearly we need to tell ICU abouyt the data that we include as a
separate file in iOS apps, and presumably any iOS app will be a
LibreOffficeKit-based one, so let's do the initialistion here.

Change-Id: Ib08dc9d7386789d10e8c53114e79d0b5beab7232
2018-09-05 22:46:01 +03:00
Tor Lillqvist 46b2350cb3 Handle passing a null pAppPath to lo_initialize() on iOS
Change-Id: I293ede0dbac4b36a1b91b86100bc11593b402d06
2018-09-05 21:57:59 +03:00
Tor Lillqvist 60569747d5 Don't copy files into the source directory, use workdir
(The LibreOfficeLight Xcode project still needs to be adapted
correspondingly.)

Change-Id: I0b17c595fc0d169f6393ab8734a1eecb241f59be
2018-09-05 21:57:59 +03:00
Tor Lillqvist 59b9fc4776 Put the lib names one per line to match what ld's -filelist expects
Change-Id: I7454c10a1547db796554f45f2d630af81a916c55
2018-09-05 13:55:24 +03:00
Tor Lillqvist 1d6d1eef3a Workaround for file name case inconsistency
Change-Id: Ia13dc01f86e51064658d5ad9a996c6bd555cbeef
2018-09-05 11:21:26 +03:00
Tor Lillqvist e3bac83bec Run bin/ios-all-static-libs and put its output in a file
(To be used from Xcode projects elsewhere building iOS apps that want
to link to iOS code built here.)

Change-Id: I39bf2a4ed059930fcfc30c4d2016dfbc698da353
2018-09-05 11:21:26 +03:00
Tor Lillqvist 1240a0749e Fix accidental placement of code inside #if HAVE_FEATURE_OPENGL
No reason for SalGraphics::getSystemDependentDataManager() to be inside
the #if HAVE_FEATURE_OPENGL. Fixes build for iOS.

Change-Id: I3d8174a4841d793f8d7ea2c3ebf3be2888229a3e
2018-08-31 10:12:04 +03:00
Tor Lillqvist 3170319638 We do want to initialise m_MainThread on iOS, too
This doesn't make the LibreOfficeLight app work much better, though.
But at least it doesn't hang its event loop completely, some 10 s
timer keeps firing. (But nothing sane shows up in the app UI, even if
some welcome.odt document apparently does get loaded. Clearly
something is waiting for something else that never happens...)

Change-Id: Ieba22a5e1418d48a7dd6cacda526aca69cced4c3
2018-08-28 15:20:01 +03:00
Tor Lillqvist 037737fe5a Fix typo
Change-Id: I78571f8494a13f6f8c07f9aee2bf6f8144a48ed2
2018-08-28 15:20:00 +03:00
Tor Lillqvist a922f56cbf Add --enable-ios-libreofficelight-app option to build stuff for janI's app
Change-Id: I1310cb8f5f543f49f9667ee10cb26c9809df259e
2018-08-28 11:38:51 +03:00
Tor Lillqvist c16d64ad4f Bin superfluous whitespace on empty line
Change-Id: Ida0ab3cd78514b2c10f8e6655becefe794217f8c
2018-08-28 11:24:50 +03:00
Tor Lillqvist 15b7cdb35d Add getMaskSet() to the dummy AVMediaSetMask
As such I am not convinced that this "dummy" replacement class
approach is the right thing; we don't do it like that elsewhere
either?

Change-Id: Ife912d9ed91bd26610ea40cf4b446beb2ed481ec
2018-08-28 11:18:27 +03:00
Tor Lillqvist 6a37bb093a Bump version number in ICU data file name
Change-Id: I222792dd34cd016196dfec9870161896c7c43b0d
2018-08-28 11:18:27 +03:00
Tor Lillqvist 1721e474e8 Avoid 'HAVE_FEATURE_GPGME' is not defined, evaluates to 0 [-Werror,-Wundef]
Change-Id: Ic788c84171747c31a686da7c523da72b0f838742
2018-08-27 22:29:49 +03:00
Tor Lillqvist 71527a308a Fix iOS build after f05f4e042c
Change-Id: I7b0c737b84f4528a8fba01e2998f525046834b1c
2018-08-27 22:29:49 +03:00
Tor Lillqvist 823a328a04 Fix build in the !(USE_TLS_OPENSSL + USE_TLS_NSS > 0) case
Change-Id: I746f0f322082e81cc47322989634322a0659aa73
2018-08-27 22:29:49 +03:00