Commit aff4cad7 authored by Benjamin Drung's avatar Benjamin Drung Committed by Rafaël Carré

Do not ship UAC.dll in source tarball.

Close #7436
Signed-off-by: Rafaël Carré's avatarRafaël Carré <funman@videolan.org>
parent 0bafe94c
......@@ -24,7 +24,6 @@ EXTRA_DIST = \
extras/package/win32/vlc.win32.nsi.in \
extras/package/win32/spad.nsi.in \
extras/package/win32/UAC.nsh \
extras/package/win32/UAC.dll \
extras/package/win32/languages/declaration.nsh \
extras/package/win32/languages/bengali.nsh \
extras/package/win32/languages/basque.nsh \
......
......@@ -129,13 +129,25 @@ package-win32-crx: package-win32-webplugin-common
--extension-output "$(win32_destdir)/vlc-$(VERSION).crx" --ignore-file install.rdf
package-win32-exe: package-win-strip
# nsis is a 32-bits installer, we need to build a 32bits DLL
$(win32_destdir)/NSIS/UAC.dll: extras/package/win32/UAC/runas.cpp extras/package/win32/UAC/uac.cpp
mkdir -p "$(win32_destdir)/NSIS/"
if HAVE_WIN64
i686-w64-mingw32-g++ $^ -shared -o $@ -lole32
i686-w64-mingw32-strip $@
else
$(CXX) $^ -shared -o $@ -lole32
$(STRIP) $@
endif
package-win32-exe: package-win-strip $(win32_destdir)/NSIS/UAC.dll
# Script installer
cd "$(top_builddir)/extras/package/win32" && cp vlc.win32.nsi spad.nsi "$(win32_destdir)/"
cp -r $(srcdir)/extras/package/win32/languages/ "$(win32_destdir)/"
cp -r $(srcdir)/extras/package/win32/helpers/ "$(win32_destdir)/"
mkdir -p "$(win32_destdir)/NSIS/"
cd "$(top_srcdir)/extras/package/win32/" && cp UAC.dll UAC.nsh "$(win32_destdir)/NSIS"
cp "$(top_srcdir)/extras/package/win32/UAC.nsh" "$(win32_destdir)/NSIS/"
# Create package
if makensis -VERSION >/dev/null 2>&1; then \
......
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