[vlc-commits] macOS: Add pseudo-bundle to buildsystem

Marvin Scholz git at videolan.org
Sat Feb 18 17:52:03 CET 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Feb 18 17:51:37 2017 +0100| [4121b9ee942b84f0922edfe1055cb3c0c02de21f] | committer: Marvin Scholz

macOS: Add pseudo-bundle to buildsystem

The pseudo-bundle allows the vlc-osx-static binary to properly
find the Info.plist and Resources like Icons and NIB files.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4121b9ee942b84f0922edfe1055cb3c0c02de21f
---

 extras/package/macosx/package.mak | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index dd39121..fe00beb 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -1,3 +1,16 @@
+if HAVE_DARWIN
+noinst_DATA = pseudo-bundle
+endif
+
+# Symlink a pseudo-bundle
+pseudo-bundle:
+	$(MKDIR_P) $(top_builddir)/bin/Contents/Resources/
+	$(LN_S) -f ../../../modules/gui/macosx/UI $(top_builddir)/bin/Contents/Resources/English.lproj
+	$(LN_S) -f ../../../../modules/gui/macosx/Resources/InfoPlist.strings $(top_builddir)/bin/Contents/Resources/English.lproj/InfoPlist.strings
+	$(LN_S) -f ../../modules/gui/macosx/Resources/Info.plist $(top_builddir)/bin/Contents/Info.plist
+	$(LN_S) -f $(CONTRIB_DIR)/Frameworks
+	cd $(top_builddir)/bin/Contents/Resources/ && find ../../../$(top_srcdir)/modules/gui/macosx/Resources/ -type f -exec $(LN_S) -f {} \;
+
 # This is just for development purposes.
 # The resulting VLC-dev.app will only run in this tree.
 VLC-dev.app: VLC-tmp
@@ -102,7 +115,7 @@ package-translations:
 	$(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
 	  | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
 
-.PHONY: package-macosx package-macosx-zip package-translations
+.PHONY: package-macosx package-macosx-zip package-translations pseudo-bundle
 
 ###############################################################################
 # Mac OS X project



More information about the vlc-commits mailing list