libreoffice-online/ios
Tor Lillqvist 600c3a8969 Add a dummy VEREIGN_URL here, too
Change-Id: I01f22ec18a2e56286520bb1f14fcd02bd43352cb
2018-12-13 16:17:12 +02:00
..
Mobile Adapt to LibreOfficeKitClass no longer having the translateGet() method 2018-12-13 16:14:42 +02:00
Mobile.xcodeproj Adapt to LibreOfficeKitClass no longer having the translateGet() method 2018-12-13 16:14:42 +02:00
TestFakeSocket Move the iOS app to the ios folder 2018-11-22 16:50:57 +02:00
config.h.in Add a dummy VEREIGN_URL here, too 2018-12-13 16:17:12 +02:00
ios.h Adapt to change in core: paintTile() now takes a buffer pointer also on iOS 2018-10-10 16:31:38 +03:00
ios.mm Adapt to change in core: paintTile() now takes a buffer pointer also on iOS 2018-10-10 16:31:38 +03:00
README Use --with-iosapp-name to set the name displayed in the Help>About dialog 2018-11-27 00:35:57 +02: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 --enable-iosapp --with-iosapp-name="My Own Mobile LibreOffice"

Then run make. That will produce files in loleaflet/dist, nothing
else. Copy those to the corresponding folder in the online clone
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
ios/Mobile.xcodeproj/project.pbxproj file in your favourite text
editor.

Change LOSRCDIR and all instances of "../ios-device" to refer the the
LibreOffice core source directory from step 1.

Then run:

./autogen.sh

and

./configure --enable-iosapp --with-iosapp-name="My Own Mobile LibreOffice" --with-lo-builddir=$HOME/lo/ios --with-poco-includes=/opt/ios-poco/include --with-poco-libs=/opt/ios-poco/lib

The configure script puts the app name as the CFBundleDisplayName
property into the ios/Mobile/Info.plist file, and set up some
symbolic links that point to the LIbreOffice core source and build
directories (which can be the same, of course).

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