Commit 6a4df192 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Ugly and almost working npapi build rules

parent 33547140
...@@ -695,6 +695,10 @@ win32_debugdir=$(top_builddir)/symbols-$(VERSION) ...@@ -695,6 +695,10 @@ win32_debugdir=$(top_builddir)/symbols-$(VERSION)
win32_lua_destdir=$(win32_destdir)/lua win32_lua_destdir=$(win32_destdir)/lua
win32_xpi_destdir=$(win32_destdir)/vlc-plugin win32_xpi_destdir=$(win32_destdir)/vlc-plugin
if HAVE_WIN32
include extras/package/npapi.am
endif
#Win-common is for win32 and wince #Win-common is for win32 and wince
package-win-common: install package-win-common: install
# Check that tmp isn't in the way # Check that tmp isn't in the way
...@@ -792,9 +796,7 @@ if BUILD_OSDMENU ...@@ -792,9 +796,7 @@ if BUILD_OSDMENU
rm -f -- "$$file.tmp"; \ rm -f -- "$$file.tmp"; \
done done
endif endif
#if BUILD_MOZILLA cp $(top_srcdir)/extras/mozilla/src/npvlc.dll.manifest $(win32_destdir)
# cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest $(win32_destdir)
#endif
if BUILD_ACTIVEX if BUILD_ACTIVEX
cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir) cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)
endif endif
...@@ -829,29 +831,23 @@ package-win-base: package-win-common ...@@ -829,29 +831,23 @@ package-win-base: package-win-common
fi ; \ fi ; \
done done
package-win32-webplugin-common: package-win-base package-win32-webplugin-common: package-win-base build-win-npapi
#if BUILD_MOZILLA mkdir -p "$(win32_xpi_destdir)/plugins"
# mkdir -p "$(win32_xpi_destdir)/plugins" find $(destdir) -maxdepth 4 -name "*$(LIBEXT)" -exec cp {} "$(win32_xpi_destdir)/" \;
# find $(destdir) -maxdepth 4 -name "*$(LIBEXT)" -exec cp {} "$(win32_xpi_destdir)/" \; cp $(top_srcdir)/extras/mozilla/src/npvlc.dll.manifest "$(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 "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" "$(win32_xpi_destdir)/plugins" cp -r $(win32_destdir)/plugins/ "$(win32_xpi_destdir)/plugins"
# cp -r $(win32_destdir)/plugins/ "$(win32_xpi_destdir)/plugins" rm -rf "$(win32_xpi_destdir)/plugins/plugins/*qt*"
# rm -rf "$(win32_xpi_destdir)/plugins/plugins/*qt*" rm -rf "$(win32_xpi_destdir)/plugins/plugins/*skins*"
# rm -rf "$(win32_xpi_destdir)/plugins/plugins/*skins*"
#endif
package-win32-xpi: package-win32-webplugin-common package-win32-xpi: package-win32-webplugin-common
#if BUILD_MOZILLA cp $(top_builddir)/extras/mozilla/src/install.rdf "$(win32_xpi_destdir)"
# cp $(top_builddir)/projects/mozilla/install.rdf "$(win32_xpi_destdir)" cd $(win32_xpi_destdir) && zip -r "../vlc-$(VERSION).xpi" install.rdf plugins
# cd $(win32_xpi_destdir) && zip -r "../vlc-$(VERSION).xpi" install.rdf plugins
#endif
package-win32-crx: package-win32-webplugin-common package-win32-crx: package-win32-webplugin-common
#if BUILD_MOZILLA cp $(top_builddir)/extras/mozilla/src/manifest.json "$(win32_xpi_destdir)"
# cp $(top_builddir)/projects/mozilla/manifest.json "$(win32_xpi_destdir)" crxmake --pack-extension "$(win32_xpi_destdir)" \
# crxmake --pack-extension "$(win32_xpi_destdir)" \ --extension-output "$(win32_destdir)/vlc-$(VERSION).crx" --ignore-file install.rdf
# --extension-output "$(win32_destdir)/vlc-$(VERSION).crx" --ignore-file install.rdf
#endif
package-win32-base-exe: package-win-base package-win32-base-exe: package-win-base
# Script installer # Script installer
......
#! /usr/bin/make -f
build-npapi: stamp-npapi-build
stamp-npapi-fetch:
rm -Rf npapi-vlc
git clone git://git.videolan.org/npapi-vlc.git npapi-vlc
touch $@
stamp-npapi-autogen: stamp-npapi-fetch
# extras/package/npapi.am
cd npapi-vlc && \
$(SHELL) ./autogen.sh
touch $@
stamp-npapi-configure: stamp-npapi-autogen
cd npapi-vlc && \
$(SHELL) ./configure \
--host=$(host_alias) --build=$(build_alias) \
--with-mozilla-sdk-path="../$(srcdir)/extras/contrib/hosts/$(host_alias)/gecko-sdk" \
CPP="$(CPP)" CPPFLAGS="$(CPPFLAGS)" \
CC="$(CC)" CFLAGS="$(CFLAGS)" \
CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \
LD="$(LD)" LDFLAGS="$(LDFLAGS)" \
PKG_CONFIG_LIBDIR="../$(srcdir)/extras/contrib/lib/pkgconfig:../src"
touch $@
stamp-npapi-build: stamp-npapi-configure
cd npapi-vlc && \
$(MAKE) $(MAKEFLAGS) all
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment