+option(host_build)
TARGET = QtQmlDevTools
QT = core
-CONFIG += static internal_module
+CONFIG += static no_module_headers internal_module
+
+MODULE_PRIVATE_INCLUDES = \
+ \$\$QT_MODULE_INCLUDE_BASE \
+ \$\$QT_MODULE_INCLUDE_BASE/QtQml \
+ \$\$QT_MODULE_INCLUDE_BASE/QtQml/$$QT.qml.VERSION \
+ \$\$QT_MODULE_INCLUDE_BASE/QtQml/$$QT.qml.VERSION/QtQml
load(qt_module)
-QT = qml quick qmltest qmldevtools
+QT = qml quick qmltest
load(qt_headersclean)
-CONFIG += testcase
+option(host_build)
TARGET = tst_compile
-QT = core qmldevtools-private testlib
+force_bootstrap: \
+ QT = bootstrap-private
+else: \
+ QT = core
+QT += qmldevtools-private
macx:CONFIG -= app_bundle
SOURCES += tst_compile.cpp
-CONFIG += parallel_test
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
** $QT_END_LICENSE$
**
****************************************************************************/
-#include <qtest.h>
#include <private/qqmljsengine_p.h>
#include <private/qqmljslexer_p.h>
#include <private/qqmljsastvisitor_p.h>
#include <private/qqmljsast_p.h>
-class tst_compile : public QObject
+int main()
{
- Q_OBJECT
-public:
- tst_compile() { }
-
-private slots:
// Nothing - this test just makes sure that the QmlDevTools headers
// are present, and that we can link against the library.
-};
-
-QTEST_MAIN(tst_compile)
-
-#include "tst_compile.moc"
+ return 0;
+}
+option(host_build)
QT = core qmldevtools-private
SOURCES += main.cpp