[Libreoffice-commits] online.git: configure.ac ios/Mobile.xcodeproj

2020-02-25 Thread Tor Lillqvist (via logerrit)
 configure.ac |1 +
 ios/Mobile.xcodeproj/project.pbxproj |2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3de577d2c20d83be0079be4066196b476c46fa8d
Author: Tor Lillqvist 
AuthorDate: Tue Feb 25 17:29:09 2020 +0200
Commit: Tor Lillqvist 
CommitDate: Tue Feb 25 21:40:03 2020 +0100

Use the loolkitconfig-mobile.xcu on iOS, too

We can't rename a file in the Xcode project, so copy it to
ios/Mobile/loolkitconfig.xcu in the configure script, and use from
there.

Change-Id: I1e50235c06f528dd24d0d968aaccc994418b57d8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89466
Tested-by: Tor Lillqvist 
Reviewed-by: Tor Lillqvist 

diff --git a/configure.ac b/configure.ac
index 398d303e3..1a038efaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -983,6 +983,7 @@ AS_IF([test "$ENABLE_IOSAPP" = "true"],
   # iOS app.
   touch ios/Mobile/Branding/branding.css
   fi
+  cp loolkitconfig-mobile.xcu ios/Mobile/loolkitconfig.xcu
fi
   ])
 AC_SUBST(IOSAPP_FONTS)
diff --git a/ios/Mobile.xcodeproj/project.pbxproj 
b/ios/Mobile.xcodeproj/project.pbxproj
index 9fab320d2..e20f49084 100644
--- a/ios/Mobile.xcodeproj/project.pbxproj
+++ b/ios/Mobile.xcodeproj/project.pbxproj
@@ -598,7 +598,7 @@
BE7D6A6523FA9C2700C2E605 /* defaultprovider.hxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.h; name = 
defaultprovider.hxx; path = 
"../../ios-device/configmgr/source/defaultprovider.hxx"; sourceTree = 
""; };
BE7D6A6623FA9C2700C2E605 /* parser.hxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.h; name = parser.hxx; path 
= "../../ios-device/configmgr/source/parser.hxx"; sourceTree = ""; };
BE7D6A6723FA9C2700C2E605 /* rootnode.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = rootnode.cxx; 
path = "../../ios-device/configmgr/source/rootnode.cxx"; sourceTree = 
""; };
-   BE7D6A6A23FAA8B500C2E605 /* loolkitconfig.xcu */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = 
loolkitconfig.xcu; path = ../../../loolkitconfig.xcu; sourceTree = ""; };
+   BE7D6A6A23FAA8B500C2E605 /* loolkitconfig.xcu */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = 
loolkitconfig.xcu; path = ../loolkitconfig.xcu; sourceTree = ""; };
BE7E5B7623AD07BE00F9462A /* SvxPresetListBox.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = 
SvxPresetListBox.cxx; path = 
"../../ios-device/svx/source/tbxctrls/SvxPresetListBox.cxx"; sourceTree = 
""; };
BE7E5B7723AD07BE00F9462A /* tbxcolor.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = tbxcolor.cxx; 
path = "../../ios-device/svx/source/tbxctrls/tbxcolor.cxx"; sourceTree = 
""; };
BE7E5B7823AD07BE00F9462A /* tbxdrctl.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = tbxdrctl.cxx; 
path = "../../ios-device/svx/source/tbxctrls/tbxdrctl.cxx"; sourceTree = 
""; };
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: configure.ac ios/Mobile.xcodeproj loleaflet/html

2019-04-22 Thread Libreoffice Gerrit user
 configure.ac |   18 ++
 ios/Mobile.xcodeproj/project.pbxproj |4 
 loleaflet/html/loleaflet.html.m4 |2 ++
 3 files changed, 24 insertions(+)

New commits:
commit 60581962af6daecc5d18c2c26f372ad28c0f8e94
Author: Tor Lillqvist 
AuthorDate: Mon Apr 22 15:22:04 2019 +0300
Commit: Tor Lillqvist 
CommitDate: Mon Apr 22 17:23:20 2019 +0300

Add branding to the iOS app

A configure argument, --with-iosapp-branding, should point to a
directory containing a branding.css file and possibly other files that
branding.css references, to be bundled and used by the iOS app. The
directory structure ends upp in the app bundle as Branding. The
generated loleaflet.html for the iOS app references
Branding/branding.css unconditionally.

diff --git a/configure.ac b/configure.ac
index 988c36a62..9fd6bfaee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,12 @@ AC_ARG_WITH([iosapp-fonts],
  [Point to a directory containing .ttf or .otf 
files to be bundled in the iOS app (and
   thus installed on the device for use of the LO 
core code).]))
 
+AC_ARG_WITH([iosapp-branding],
+  AS_HELP_STRING([--with-iosapp-branding=],
+ [Point to a directory containing a branding.css 
file and possibly other files it references,
+  to be bundled and used by the iOS app. The 
directory structure is copied to
+  "loleaflet/dist/branding" and that directory 
ends upp in the app bundle as "branding".]))
+
 AC_ARG_ENABLE([gtkapp],
   AS_HELP_STRING([--enable-gtkapp],
  [Use in a tree where the only purpose is to build 
the gtk+ "app" that is supposed
@@ -731,6 +737,18 @@ AS_IF([test "$ENABLE_IOSAPP" = "true"],
echo 'Fonts/'$(basename 
$fname)''
 done`
   fi
+  rm -rf ios/Mobile/Branding
+  mkdir ios/Mobile/Branding
+  if test "$with_iosapp_branding" != no -a -d "$with_iosapp_branding"; 
then
+  AC_MSG_NOTICE([copying branding files])
+  mkdir -p loleaflet/dist/branding
+  (cd "$with_iosapp_branding" && tar cf - .) | (cd 
ios/Mobile/Branding && tar xf -)
+  else
+  # A Branding/branding.css file must exist, it is
+  # referenced unconditionally in loleaflet.html in the
+  # iOS app.
+  touch ios/Mobile/Branding/branding.css
+  fi
fi
   ])
 AC_SUBST(IOSAPP_FONTS)
diff --git a/ios/Mobile.xcodeproj/project.pbxproj 
b/ios/Mobile.xcodeproj/project.pbxproj
index 119e90303..c4ec1ae61 100644
--- a/ios/Mobile.xcodeproj/project.pbxproj
+++ b/ios/Mobile.xcodeproj/project.pbxproj
@@ -15,6 +15,7 @@
BE00F8A821396585001CE2D4 /* images in Resources */ = {isa = 
PBXBuildFile; fileRef = BE00F89E21396585001CE2D4 /* images */; };
BE00F8B5213ED543001CE2D4 /* libiconv.tbd in Frameworks */ = 
{isa = PBXBuildFile; fileRef = BE00F8B4213ED543001CE2D4 /* libiconv.tbd */; };
BE00F8B7213ED573001CE2D4 /* libz.tbd in Frameworks */ = {isa = 
PBXBuildFile; fileRef = BE00F8B6213ED573001CE2D4 /* libz.tbd */; };
+   BE18C7DE226DE09A001AD27E /* Branding in Resources */ = {isa = 
PBXBuildFile; fileRef = BE18C7DD226DE09A001AD27E /* Branding */; };
BE5EB5C1213FE29900E0826C /* Log.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = BE5EB5B9213FE29900E0826C /* Log.cpp */; };
BE5EB5C2213FE29900E0826C /* SpookyV2.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = BE5EB5BA213FE29900E0826C /* SpookyV2.cpp */; };
BE5EB5C3213FE29900E0826C /* Session.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = BE5EB5BB213FE29900E0826C /* Session.cpp */; };
@@ -75,6 +76,7 @@
BE00F89E21396585001CE2D4 /* images */ = {isa = 
PBXFileReference; lastKnownFileType = folder; name = images; path = 
../../../loleaflet/dist/images; sourceTree = ""; };
BE00F8B4213ED543001CE2D4 /* libiconv.tbd */ = {isa = 
PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; 
name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; };
BE00F8B6213ED573001CE2D4 /* libz.tbd */ = {isa = 
PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; 
name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
+   BE18C7DD226DE09A001AD27E /* Branding */ = {isa = 
PBXFileReference; lastKnownFileType = folder; name = Branding; path = 
Mobile/Branding; sourceTree = SOURCE_ROOT; };
BE34D10F218B66B600815297 /* docsh.cxx */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = docsh.cxx; 
path = "../../ios-device/sw/source/uibase/app/docsh.cxx"; sourceTree = 
""; };