Commit b8ab4723 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf

contrib/QtSvg: fix cross compilation for win32

* set QtSvg as a requirement on windows
* fix link compilation order for mingw
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 135ed40c
......@@ -5,6 +5,10 @@ QTSVG_URL := https://download.qt.io/official_releases/qt/5.6/$(QTSVG_VERSION)/su
DEPS_qtsvg += qt $(DEPS_qt)
ifdef HAVE_WIN32
PKGS += qtsvg
endif
ifeq ($(call need_pkg,"Qt5Svg"),)
PKGS_FOUND += qtsvg
endif
......@@ -30,5 +34,5 @@ qtsvg: qtsvg-$(QTSVG_VERSION).tar.xz .sum-qtsvg
cd $(PREFIX)/lib/pkgconfig; sed -i \
-e 's/d\.a/.a/g' \
-e 's/-lQt\([^ ]*\)d/-lQt\1/g' \
-e '/Libs:/ s/$$/ -lqsvg -lqsvgicon/ ' \
-e '/Libs:/ s/-lQt5Svg/-lqsvg -lqsvgicon -lQt5Svg/ ' \
Qt5Svg.pc
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