Use pkg-config to get the Qt5 compiler/linker flags for the test program.

This commit is contained in:
Torsten Paul 2014-06-23 16:17:32 +02:00
parent e49640ffdc
commit abaeb80be5
1 changed files with 3 additions and 6 deletions

View File

@ -25,10 +25,7 @@ define $(PKG)_BUILD
'$(TARGET)-g++' \
-W -Wall -Werror -std=c++0x -pedantic \
-I'$(PREFIX)/$(TARGET)/qt5/include' \
-I'$(PREFIX)/$(TARGET)/qt5/include/QtCore' \
-I'$(PREFIX)/$(TARGET)/qt5/include/QtWidgets' \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-qscintilla2.exe' \
-lqscintilla2 \
$(shell grep QMAKE_PRL_LIBS "$(PREFIX)/$(TARGET)/qt5/lib/Qt5OpenGL.prl" | sed -e 's/.*=//')
`'$(TARGET)-pkg-config' Qt5Widgets --cflags` \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-qscintilla2.exe' -lqscintilla2 \
`'$(TARGET)-pkg-config' Qt5Widgets --libs`
endef