[vlc-devel] commit: VLC xpi bundle patch (Luca Barbato )

git version control git at videolan.org
Wed Feb 3 14:46:24 CET 2010


vlc | branch: master | Luca Barbato <lu_zero at gentoo.org> | Wed Feb  3 14:41:47 2010 +0100| [33cb9ae7d1a34614445a6dc66f76fc8e6c99470e] | committer: Jean-Baptiste Kempf 

VLC xpi bundle patch

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 Makefile.am                     |   30 ++++++++++++++++++++++++++++++
 configure.ac                    |    1 +
 projects/mozilla/install.rdf.in |   15 +++++++++++++++
 3 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index fff7f22..e299a97 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 ef73309..ee1c9dd 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 0000000..4c95bcf
--- /dev/null
+++ b/projects/mozilla/install.rdf.in
@@ -0,0 +1,15 @@
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+  <Description about="urn:mozilla:install-manifest">
+    <em:id>vlc-plugin at videolan.org</em:id>
+    <em:name>VideoLAN</em:name>
+    <em:version>@VERSION_MAJOR at .@VERSION_MINOR at .@VERSION_REVISION@@VERSION_EXTRA@</em:version>
+    <em:targetApplication>
+      <Description>
+        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
+        <em:minVersion>1.5</em:minVersion>
+        <em:maxVersion>3.5.*</em:maxVersion>
+      </Description>
+    </em:targetApplication>
+  </Description>
+</RDF>
+




More information about the vlc-devel mailing list