]> git.sesse.net Git - vlc/commitdiff
Win32: don't build NPAPI in package-win-common
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 15 Dec 2014 15:49:01 +0000 (16:49 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 15 Dec 2014 16:01:48 +0000 (17:01 +0100)
Many people don't care about NPAPI and it's hard to build

extras/package/win32/package.mak

index 43d5037d7703277b6068405bb277d0710b493dfb..b733a492f7c198cc1ccc1939ae037165a2fc15f1 100644 (file)
@@ -26,8 +26,7 @@ package-win-install:
        $(MAKE) install
        touch $@
 
-
-package-win-common: package-win-install build-npapi
+package-win-common: package-win-install
        mkdir -p "$(win32_destdir)"/
 
 # Executables, major libs+manifests
@@ -59,11 +58,6 @@ if BUILD_SKINS
        cp -r $(prefix)/share/vlc/skins2 $(win32_destdir)/skins
 endif
 
-       cp "$(top_builddir)/npapi-vlc/activex/axvlc.dll.manifest" "$(win32_destdir)/"
-       cp "$(top_builddir)/npapi-vlc/installed/lib/axvlc.dll" "$(win32_destdir)/"
-       cp "$(top_builddir)/npapi-vlc/npapi/package/npvlc.dll.manifest" "$(win32_destdir)/"
-       cp "$(top_builddir)/npapi-vlc/installed/lib/npvlc.dll" "$(win32_destdir)/"
-
 # Compiler shared DLLs, when using compilers built with --enable-shared
 # The shared DLLs may not necessarily be in the first LIBRARY_PATH, we
 # should check them all.
@@ -87,17 +81,21 @@ endif
        $(DLLTOOL) -D libvlccore.dll -l "$(win32_destdir)/sdk/lib/libvlccore.lib" -d "$(top_builddir)/src/.libs/libvlccore.dll.def" "$(prefix)/bin/libvlccore.dll"
        echo "INPUT(libvlccore.lib)" > "$(win32_destdir)/sdk/lib/vlccore.lib"
 
-       mkdir -p "$(win32_destdir)/sdk/activex/"
-       cd $(top_builddir)/npapi-vlc && cp activex/README.TXT share/test/test.html $(win32_destdir)/sdk/activex/
-
 # Convert to DOS line endings
        find $(win32_destdir) -type f \( -name "*xml" -or -name "*html" -or -name '*js' -or -name '*css' -or -name '*hosts' -or -iname '*txt' -or -name '*.cfg' -or -name '*.lua' \) -exec $(U2D) {} \;
 
 # Remove cruft
        find $(win32_destdir)/plugins/ -type f \( -name '*.a' -or -name '*.la' \) -exec rm -rvf {} \;
 
+package-win-npapi: build-npapi
+       cp "$(top_builddir)/npapi-vlc/activex/axvlc.dll.manifest" "$(win32_destdir)/"
+       cp "$(top_builddir)/npapi-vlc/installed/lib/axvlc.dll" "$(win32_destdir)/"
+       cp "$(top_builddir)/npapi-vlc/npapi/package/npvlc.dll.manifest" "$(win32_destdir)/"
+       cp "$(top_builddir)/npapi-vlc/installed/lib/npvlc.dll" "$(win32_destdir)/"
+       mkdir -p "$(win32_destdir)/sdk/activex/"
+       cd $(top_builddir)/npapi-vlc && cp activex/README.TXT share/test/test.html $(win32_destdir)/sdk/activex/
 
-package-win-strip: package-win-common
+package-win-strip: package-win-common package-win-npapi
        mkdir -p "$(win32_debugdir)"/
        cd $(win32_destdir); find . -type f \( -name '*$(LIBEXT)' -or -name '*$(EXEEXT)' \) | while read i; \
        do if test -n "$$i" ; then \