libreoffice-online/Mobile
Tor Lillqvist 050d9699e5 Use debug build of Poco libs also in Release configuration for now
Using an optimised build of Poco seems to cause some code to work
incorrectly, sigh. No time to investigate deeper now.

Change-Id: I47e1809d380226d489db35bf4fc97d0f731fd887
2018-10-30 00:22:22 +02:00
..
Mobile Add a completion handler that logs the success value 2018-10-17 15:59:19 +03:00
Mobile.xcodeproj Use debug build of Poco libs also in Release configuration for now 2018-10-30 00:22:22 +02:00
TestFakeSocket Improve shutdown semantics 2018-09-18 13:04:11 +03:00
README Minor edits 2018-10-24 12:44:47 +03:00

How to build the iOS app:

1) First you need to build the LibreOffice core code for iOS. Put in
your autogen.input something like this:

--enable-debug
--enable-dbgutil
--enable-werror
--with-distro=LibreOfficeiOS

and build "normally". (Naturally, no unit tests will be run when
cross-compiling LibreOffice.) Of course there is no requirement to use
those --enable options; as a minimum, just
--with-distro=LibreOfficeiOS should work.

This will produce a large number of static archives (.a) here and
there in instdir and workdir, but no app that can be run as such. (You
can see a list of them in
workdir/CustomTarget/ios/ios-all-static-libs.list)

2) Do a separate clone of the online repo on macOS, but don't run any
make or open the Mobile project there yet.

3) Do a separate clone of the online repo on Linux, run autogen.sh,
and configure it with the --enable-iosapp option:

./configure --disable-ssl --enable-iosapp --with-lo-path=/home/tml/lo/fedora/instdir --with-lokit-path=/home/tml/lo/fedora/include

(The --with-lo-path and --with-lokit-path options are actually
irrelevant, but needed anyway.)

Then run make. That will produce files in loleaflet/dist, nothing
else. Copy those to the corresponding folder in the online close
from step 2. This is what I do:

make clean && make && tar cf - loleaflet/dist | ssh misan.local 'cd lo/online-ios-device && tar xvf -'

where misan.local is the macOS machine where I build the app, in the
~lo/online-ios-device folder.

4) In the online folder form step 2, edit the
Mobile/Mobile.xcodeproj/project.pbxproj file in your favourite text
editor.

Change all instances of ../../../../ios-device to the path to where
you built LibreOffice core for iOS in step 1. Change the value of
PNGINSTDIR to where you have installed libpng compiled for iOS. Change
POCOINSTDIR to where you have installed Poco compiled for iOS.

4) Now you can open the Mobile Xcode project, build it, and run it.