destdir=_win32
#Win-common is for win32 and wince
-package-win-common:
+package-win-common: install
# Check that tmp isn't in the way
@if test -e "$(win32_destdir)"; then \
echo "Error: please remove $(win32_destdir), it is in the way"; \
done
endif
if BUILD_MOZILLA
- mkdir -p "$(win32_destdir)/mozilla"
- cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(win32_destdir)/mozilla/
- cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest $(win32_destdir)/mozilla/
+ cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(win32_destdir)
+ cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest $(win32_destdir)
endif
if BUILD_ACTIVEX
- mkdir -p "$(win32_destdir)/activex"
- cp $(srcdir)/projects/activex/README.TXT $(win32_destdir)/activex/
- cp $(srcdir)/projects/activex/test.html $(win32_destdir)/activex/
- cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(win32_destdir)/activex/
- cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)/activex/
+ cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(win32_destdir)
+ cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)
endif
# SDK
cp -r $(destdir)/lib/pkgconfig "$(win32_destdir)/sdk/lib"
for file in libvlc.dll.a libvlc.la libvlccore.dll.a libvlccore.la; do \
cp -r $(destdir)/lib/$$file "$(win32_destdir)/sdk/lib"; done
+if BUILD_ACTIVEX
+ cp $(srcdir)/projects/activex/README.TXT $(win32_destdir)/sdk/
+ cp $(srcdir)/projects/activex/test.html $(win32_destdir)/sdk/
+endif
find $(win32_destdir) -name "*xml" -or -name "*html" -or -name '*js' -or -name '*css' -or -name '*hosts' -or -iname '*txt' -or -name '*.cfg' -or -name '*lua' -exec unix2dos {} \;
# Strip DLLs
package-win-common-strip: package-win-common
- find $(win32_destdir) -name '*$(LIBEXT)' -or -name "*$(EXEEXT) | while read i; \
- do \
- if test -n "$$i" ; then \
+ find $(win32_destdir) -name '*$(LIBEXT)' -or -name '*$(EXEEXT)' | while read i; \
+ do if test -n "$$i" ; then \
$(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
$(OBJCOPY) --strip-all "$$i" ; \
$(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \