]> git.sesse.net Git - vlc/commitdiff
VLC xpi bundle patch
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 3 Feb 2010 13:41:47 +0000 (14:41 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 3 Feb 2010 13:46:15 +0000 (14:46 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Makefile.am
configure.ac
projects/mozilla/install.rdf.in [new file with mode: 0644]

index fff7f22f77342cf37cca62a5291541011c422eaf..e299a97f87625182ac8d5a743b5b33932fa531a1 100644 (file)
@@ -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"; \
index ef733095dda82c292f768ab9979a87f3e59e055f..ee1c9dd44d86dd23987c4360343eccadae9e2f4d 100644 (file)
@@ -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 (file)
index 0000000..4c95bcf
--- /dev/null
@@ -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@videolan.org</em:id>
+    <em:name>VideoLAN</em:name>
+    <em:version>@VERSION_MAJOR@.@VERSION_MINOR@.@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>
+