- $(U2D) "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen"
-# Necessary icons
- cp $(srcdir)/share/icons/vlc.ico $(win32_destdir)/
-# Copy the locales
- cp -r $(destdir)/share/locale $(win32_destdir)
-
-# Mozilla plugin
-if BUILD_MOZILLA
- mkdir -p "$(win32_destdir)/mozilla"
- cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(win32_destdir)/mozilla/
- cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest $(win32_destdir)/mozilla/
-endif
-
-# ActiveX plugin
-if BUILD_ACTIVEX
- mkdir -p "$(win32_destdir)/activex"
- cp $(srcdir)/projects/activex/README.TXT $(win32_destdir)/activex/
- cp $(srcdir)/projects/activex/test.html $(win32_destdir)/activex/
- $(U2D) $(win32_destdir)/activex/*
- cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(win32_destdir)/activex/
- cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)/activex/
-endif
-
-# Rebase all those DLLs to speed up loading (need cygwin rebase)
- if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
- find $(win32_destdir) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
- fi
-
-# Copy the UAC NSIS plugin
- mkdir -p "$(win32_destdir)/NSIS"
- cp "$(top_srcdir)/extras/package/win32/UAC.nsh" "$(win32_destdir)/NSIS"
- cp "$(top_srcdir)/extras/package/win32/UAC.dll" "$(win32_destdir)/NSIS"
-
-prepare-win32-web-plugin: package-win-common-strip
- mkdir -p "$(win32_xpi_destdir)/plugins"
- 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"
- rm -rf "$(win32_xpi_destdir)/plugins/plugins/*qt*"
- rm -rf "$(win32_xpi_destdir)/plugins/plugins/*skins*"
-package-win32-xpi: prepare-win32-web-plugin
- cp $(top_builddir)/projects/mozilla/install.rdf "$(win32_xpi_destdir)"
- cd $(win32_xpi_destdir) && zip -r "../vlc-$(VERSION).xpi" \
- install.rdf plugins