[vlc-commits] Do not ship UAC.dll in source tarball.

Benjamin Drung git at videolan.org
Thu Sep 6 16:53:15 CEST 2012


vlc | branch: master | Benjamin Drung <bdrung at debian.org> | Thu Sep  6 15:07:22 2012 +0200| [8427f0eeb4efb22206693ba5dcb9fddb5c3952a4] | committer: Rafaël Carré

Do not ship UAC.dll in source tarball.

Close #7436

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8427f0eeb4efb22206693ba5dcb9fddb5c3952a4
---

 Makefile.am                      |    1 -
 extras/package/win32/UAC.dll     |  Bin 14848 -> 0 bytes
 extras/package/win32/package.mak |   16 ++++++++++++++--
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index ec653b9..d15033a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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 \
diff --git a/extras/package/win32/UAC.dll b/extras/package/win32/UAC.dll
deleted file mode 100755
index 9c0390c..0000000
Binary files a/extras/package/win32/UAC.dll and /dev/null differ
diff --git a/extras/package/win32/package.mak b/extras/package/win32/package.mak
index 9de0d1c..64c5316 100644
--- a/extras/package/win32/package.mak
+++ b/extras/package/win32/package.mak
@@ -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
+$(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
+	# nsis is a 32-bits installer, we need to build a 32bits DLL
+	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 \



More information about the vlc-commits mailing list