summaryrefslogtreecommitdiffstats
path: root/src/qscintilla2.mk
diff options
context:
space:
mode:
authorTorsten Paul <Torsten.Paul@gmx.de>2014-06-18 19:59:13 (GMT)
committerTorsten Paul <Torsten.Paul@gmx.de>2014-06-18 19:59:13 (GMT)
commit9c4b3f229bde48025a2e52591589e3d52ee62643 (patch)
tree98f350f6f0664541e3dc6dcdaa261a5e59750e3e /src/qscintilla2.mk
parent0a27922a5c3c07447d1dbf835da86938ba210bc9 (diff)
downloadmxe-9c4b3f229bde48025a2e52591589e3d52ee62643.zip
mxe-9c4b3f229bde48025a2e52591589e3d52ee62643.tar.gz
mxe-9c4b3f229bde48025a2e52591589e3d52ee62643.tar.bz2
Add test program using the qscintilla2 editor component.
Diffstat (limited to 'src/qscintilla2.mk')
-rw-r--r--src/qscintilla2.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qscintilla2.mk b/src/qscintilla2.mk
index 1293451..868910f 100644
--- a/src/qscintilla2.mk
+++ b/src/qscintilla2.mk
@@ -22,4 +22,13 @@ define $(PKG)_BUILD
cd '$(1)/Qt4Qt5' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake' qscintilla.pro
$(MAKE) -C '$(1)/Qt4Qt5' -j '$(JOBS)'
$(MAKE) -C '$(1)/Qt4Qt5' -j '$(JOBS)' install
+
+ '$(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/.*=//')
endef