Commit 162edb54 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: makefile simplification

After `make install` move the right files around so it matches the old layout
parent fd57f0ea
...@@ -702,6 +702,7 @@ npvlc=vlc-$(VERSION)/mozilla/npvlc$(LIBEXT) ...@@ -702,6 +702,7 @@ npvlc=vlc-$(VERSION)/mozilla/npvlc$(LIBEXT)
axvlc=vlc-$(VERSION)/activex/axvlc$(LIBEXT) axvlc=vlc-$(VERSION)/activex/axvlc$(LIBEXT)
win32_lua_destdir=$(win32_destdir)/lua win32_lua_destdir=$(win32_destdir)/lua
win32_http_destdir=$(win32_destdir)/http win32_http_destdir=$(win32_destdir)/http
destdir=_win32
#Win-common if for win32 and wince #Win-common if for win32 and wince
package-win-common: package-win-common:
...@@ -709,25 +710,21 @@ package-win-common: ...@@ -709,25 +710,21 @@ package-win-common:
@if test -e "$(win32_destdir)"; then \ @if test -e "$(win32_destdir)"; then \
echo "Error: please remove $(win32_destdir), it is in the way"; \ echo "Error: please remove $(win32_destdir), it is in the way"; \
false; \ false; \
else \ elif test -e "$(win32_debugdir)"; then \
echo "OK."; mkdir -p "$(win32_destdir)"; \
fi
# Same for debug symbols dir
@if test -e "$(win32_debugdir)"; then \
echo "Error: please remove $(win32_debugdir), it is in the way"; \ echo "Error: please remove $(win32_debugdir), it is in the way"; \
false; \ false; \
else \ else \
echo "OK."; mkdir -p "$(win32_debugdir)"; \ echo "OK."; mkdir -p "$(win32_debugdir)"; \
echo "OK."; mkdir -p "$(win32_destdir)"; \
fi fi
# Copy relevant files # Copy relevant files
# Copy executables, major libs+manifests # Copy executables, major libs+manifests
cp "$(top_builddir)/bin/.libs/vlc$(EXEEXT)" "$(win32_destdir)/" for file in $(destdir)/bin/vlc$(EXEEXT) $(destdir)/bin/libvlc$(LIBEXT) \
cp "$(top_builddir)/bin/.libs/vlc-cache-gen$(EXEEXT)" "$(win32_destdir)/" $(destdir)/bin/libvlccore$(LIBEXT) $(destdir)/lib/vlc/vlc-cache-gen$(EXEEXT) \
cp "$(top_srcdir)/extras/package/win32/vlc.exe.manifest" "$(win32_destdir)/" $(top_srcdir)/extras/package/win32/vlc$(EXEEXT).manifest \
cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" "$(win32_destdir)/" $(top_srcdir)/extras/package/win32/libvlc$(LIBEXT).manifest; \
cp "$(top_builddir)/src/.libs/libvlccore$(LIBEXT)" "$(win32_destdir)/" do cp $$file "$(win32_destdir)/" ; done;
cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "$(win32_destdir)/"
# Copy Text files # Copy Text files
for file in AUTHORS THANKS ; \ for file in AUTHORS THANKS ; \
...@@ -735,19 +732,10 @@ package-win-common: ...@@ -735,19 +732,10 @@ package-win-common:
for file in NEWS COPYING README; \ for file in NEWS COPYING README; \
do cp "$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; done do cp "$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; done
$(U2D) "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen" $(U2D) "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen"
# Necessary icons # Necessary icons
cp $(srcdir)/share/icons/vlc.ico $(win32_destdir)/ cp $(srcdir)/share/icons/vlc.ico $(win32_destdir)/
# Copy the locales # Copy the locales
mkdir -p $(win32_destdir)/locale cp -r $(destdir)/share/locale $(win32_destdir)
cat $(top_srcdir)/po/LINGUAS | while read i; do \
mkdir -p "$(win32_destdir)/locale/$${i}/LC_MESSAGES" ; \
cp "$(srcdir)/po/$${i}.gmo" \
"$(win32_destdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
done
mkdir -p $(win32_destdir)/locale/qt4/
cp $(QT4LOCALEDIR)/*.qm $(win32_destdir)/locale/qt4/ || true
# Mozilla plugin # Mozilla plugin
if BUILD_MOZILLA if BUILD_MOZILLA
...@@ -907,42 +895,20 @@ endif ...@@ -907,42 +895,20 @@ endif
# Copy the http files # Copy the http files
if BUILD_HTTPD if BUILD_HTTPD
mkdir -p "$(win32_http_destdir)/images" cp -r $(destdir)/share/vlc/http $(win32_http_destdir)
mkdir -p "$(win32_http_destdir)/requests"
mkdir -p "$(win32_http_destdir)/js"
mkdir -p "$(win32_http_destdir)/dialogs"
cp $(srcdir)/share/http/*.html $(win32_http_destdir)/
$(U2D) $(win32_http_destdir)/*.html $(U2D) $(win32_http_destdir)/*.html
cp $(srcdir)/share/http/.hosts $(win32_http_destdir)/
$(U2D) $(win32_http_destdir)/.hosts $(U2D) $(win32_http_destdir)/.hosts
cp $(srcdir)/share/http/*.css $(win32_http_destdir)/
$(U2D) $(win32_http_destdir)/*.css $(U2D) $(win32_http_destdir)/*.css
cp $(srcdir)/share/http/js/*.js $(win32_http_destdir)/js/
$(U2D) $(win32_http_destdir)/js/*.js $(U2D) $(win32_http_destdir)/js/*.js
cp $(srcdir)/share/http/dialogs/* $(win32_http_destdir)/dialogs/
$(U2D) $(win32_http_destdir)/dialogs/* $(U2D) $(win32_http_destdir)/dialogs/*
cp $(srcdir)/share/http/dialogs/.hosts $(win32_http_destdir)/dialogs/
$(U2D) $(win32_http_destdir)/dialogs/.hosts $(U2D) $(win32_http_destdir)/dialogs/.hosts
cp $(srcdir)/share/http/*.ico $(win32_http_destdir)/
cp $(srcdir)/share/http/images/*.png $(win32_http_destdir)/images/
cp $(srcdir)/share/http/requests/*.xml $(win32_http_destdir)/requests/
$(U2D) $(win32_http_destdir)/requests/*.xml $(U2D) $(win32_http_destdir)/requests/*.xml
cp $(srcdir)/share/http/requests/readme $(win32_http_destdir)/requests/readme.txt mv $(win32_http_destdir)/requests/readme $(win32_http_destdir)/requests/readme.txt
$(U2D) $(win32_http_destdir)/requests/readme.txt $(U2D) $(win32_http_destdir)/requests/readme.txt
endif endif
if BUILD_SKINS if BUILD_SKINS
# Skins cp -r $(destdir)/share/vlc/skins2 $(win32_destdir)/skins
mkdir -p $(win32_destdir)/skins/fonts
for i in $(srcdir)/share/skins2/fonts/*.*; do \
cp -- "$$i" $(win32_destdir)/skins/fonts/ || true ; \
done
for i in $(top_builddir)/share/skins2/*.*; do \
cp -- "$$i" $(win32_destdir)/skins/ || true ; \
done
cp -- $(srcdir)/share/skins2/skin.catalog $(win32_destdir)/skins/ || true ;
cp -- $(srcdir)/share/skins2/skin.dtd $(win32_destdir)/skins/ || true ;
endif endif
if BUILD_OSDMENU if BUILD_OSDMENU
...@@ -964,14 +930,12 @@ if BUILD_OSDMENU ...@@ -964,14 +930,12 @@ if BUILD_OSDMENU
endif endif
# SDK # SDK
mkdir -p "$(win32_destdir)/sdk.tmp"
mkdir -p "$(win32_destdir)/sdk" mkdir -p "$(win32_destdir)/sdk"
d=$$(pwd) && \ mkdir -p "$(win32_destdir)/sdk/lib"
cd src && \ cp -r $(destdir)/include "$(win32_destdir)/sdk"
make install DESTDIR="$$d/vlc-$(VERSION)/sdk.tmp" cp -r $(destdir)/lib/pkgconfig "$(win32_destdir)/sdk/lib"
cd vlc-$(VERSION) && mv sdk.tmp/$(prefix)/* sdk/ for file in libvlc.dll.a libvlc.la libvlccore.dll.a libvlccore.la; do \
find vlc-$(VERSION)/sdk.tmp -type d | sort -r | xargs rmdir cp -r $(destdir)/lib/$$file "$(win32_destdir)/sdk/lib"; done
rm -Rf vlc-$(VERSION)/sdk/bin
# Strip DLLs # Strip DLLs
package-win-common-strip: package-win32-base-debug package-win-common-strip: package-win32-base-debug
......
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