diff options
author | Torsten Paul <Torsten.Paul@gmx.de> | 2014-06-18 19:59:13 (GMT) |
---|---|---|
committer | Torsten Paul <Torsten.Paul@gmx.de> | 2014-06-18 19:59:13 (GMT) |
commit | 9c4b3f229bde48025a2e52591589e3d52ee62643 (patch) | |
tree | 98f350f6f0664541e3dc6dcdaa261a5e59750e3e | |
parent | 0a27922a5c3c07447d1dbf835da86938ba210bc9 (diff) | |
download | mxe-9c4b3f229bde48025a2e52591589e3d52ee62643.zip mxe-9c4b3f229bde48025a2e52591589e3d52ee62643.tar.gz mxe-9c4b3f229bde48025a2e52591589e3d52ee62643.tar.bz2 |
Add test program using the qscintilla2 editor component.
-rw-r--r-- | src/qscintilla2-test.cpp | 15 | ||||
-rw-r--r-- | src/qscintilla2.mk | 9 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/qscintilla2-test.cpp b/src/qscintilla2-test.cpp new file mode 100644 index 0000000..125f402 --- /dev/null +++ b/src/qscintilla2-test.cpp @@ -0,0 +1,15 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include <QString> + +#include <Qsci/qsciscintilla.h> + +int main(int, char **) +{ + QsciScintilla *scintilla = new QsciScintilla(); + scintilla->setText("Test Text"); + return QString("Test Text").compare(scintilla->text()) != 0; +} 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 |