From: Luca Barbato Date: Wed, 3 Feb 2010 13:41:47 +0000 (+0100) Subject: VLC xpi bundle patch X-Git-Tag: 1.1.0-ff~514 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=33cb9ae7d1a34614445a6dc66f76fc8e6c99470e;p=vlc VLC xpi bundle patch Signed-off-by: Jean-Baptiste Kempf --- diff --git a/Makefile.am b/Makefile.am index fff7f22f77..e299a97f87 100644 --- a/Makefile.am +++ b/Makefile.am @@ -681,6 +681,7 @@ VLC.app: vlc $(top_builddir)/src/.libs/libvlccore.dylib $(top_builddir)/src/.lib ## Win ## ############################################################################ win32_destdir=$(top_builddir)/vlc-$(VERSION) +win32_xpi_destdir=$(win32_destdir)/vlc-plugin win32_debugdir=$(top_builddir)/symbols-$(VERSION) npvlc=vlc-$(VERSION)/mozilla/npvlc$(LIBEXT) axvlc=vlc-$(VERSION)/activex/axvlc$(LIBEXT) @@ -749,6 +750,25 @@ endif find $(win32_destdir) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \ fi +package-win32-xpi: package-win-common-strip + mkdir -p "$(win32_xpi_destdir)/plugins" + cp $(top_builddir)/projects/mozilla/install.rdf "$(win32_xpi_destdir)" + cp $(win32_destdir)/mozilla//npvlc$(LIBEXT) \ + "$(win32_xpi_destdir)/plugins" + cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest \ + "$(win32_xpi_destdir)/plugins" + cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" \ + "$(win32_xpi_destdir)/plugins" + cp "$(win32_destdir)/libvlccore$(LIBEXT)" \ + "$(win32_xpi_destdir)/plugins" + cp "$(win32_destdir)/libvlc$(LIBEXT)" \ + "$(win32_xpi_destdir)/plugins" + + mkdir -p "$(win32_xpi_destdir)/plugins/plugins" + cp "$(win32_destdir)/plugins/*$(LIBEXT)" \ + "$(win32_xpi_destdir)/plugins/plugins" + cd $(win32_xpi_destdir) && zip -r vlc-$(VERSION).xpi install.rdf plugins + package-win32-base-debug: package-win-common # Copy relevant files # Script installer @@ -1169,6 +1189,16 @@ if BUILD_MOZILLA rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)" endif +package-macosx-xpi: +if BUILD_MOZILLA + mkdir -p "$(top_builddir)/macosx-xpi/plugins" + cp $(top_builddir)/projects/mozilla/install.rdf \ + "$(top_builddir)/macosx-xpi/" + cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" \ + "$(top_builddir)/macosx-xpi/plugins" + cd "$(top_builddir)/macosx-xpi" && zip -r vlc-$(VERSION).xpi install.rdf plugins +endif + package-translations: @if test -e "$(srcdir)/vlc-translations-$(VERSION)"; then \ echo "Error: please remove $(srcdir)/vlc-translations-$(VERSION), it is in the way"; \ diff --git a/configure.ac b/configure.ac index ef733095dd..ee1c9dd44d 100644 --- a/configure.ac +++ b/configure.ac @@ -4934,6 +4934,7 @@ AC_CONFIG_FILES([ projects/mozilla/npvlc_rc.rc projects/mozilla/vlc.r projects/mozilla/install.js + projects/mozilla/install.rdf share/Makefile compat/Makefile src/Makefile diff --git a/projects/mozilla/install.rdf.in b/projects/mozilla/install.rdf.in new file mode 100644 index 0000000000..4c95bcfe72 --- /dev/null +++ b/projects/mozilla/install.rdf.in @@ -0,0 +1,15 @@ + + + vlc-plugin@videolan.org + VideoLAN + @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_REVISION@@VERSION_EXTRA@ + + + {ec8030f7-c20a-464f-9b0e-13a3a9e97384} + 1.5 + 3.5.* + + + + +