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 =
""; };