Imported Upstream version 1.57.0
[platform/upstream/boost.git] / tools / build / test / qt5 / jamroot.jam
1 #  (c) Copyright Juergen Hunold 2008
2 #  Use, modification, and distribution are subject to the
3 #  Boost Software License, Version 1.0. (See accompanying file
4 #  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 import qt5 ;
7 import testing ;
8 import cast ;
9
10 path-constant CWD : . ;
11
12
13 if [ qt5.initialized ]
14 {
15     use-project /boost : ../../../.. ;
16
17     project qttest
18       : requirements
19           <library>/boost/test//boost_unit_test_framework
20       ;
21
22     alias qt-tests :
23       # Check for explicit libraries, <use>/qt should not link any lib
24       [ link-fail qtcorefail.cpp : <use>/qt ]
25
26       [ run qtcore.cpp /qt5//QtCore ]
27       [ run qtsql.cpp  /qt5//QtSql  ]
28       [ run qtxml.cpp  /qt5//QtXml  ]
29       [ run qtnetwork.cpp /qt5//QtNetwork ]
30       [ run qtscript.cpp  /qt5//QtScript  ]
31       [ run qtscripttools.cpp  /qt5//QtScriptTools  ]
32       [ run qtxmlpatterns.cpp  /qt5//QtXmlPatterns  ]
33
34       # ToDo: runable example code
35       [ link qtsvg.cpp /qt5//QtSvg ]
36       [ link qtwidgets.cpp /qt5//QtWidgets ]
37
38       # Multimedia toolkits.
39       [ link qtwebkit.cpp /qt5//QtWebKit ]
40       [ link qtwebkitwidgets.cpp /qt5//QtWebKitWidgets ]
41       [ link qtmultimedia.cpp /qt5//QtMultimedia ]
42
43       # QtQuick version1
44       [ link qtdeclarative.cpp /qt5//QtDeclarative ]
45
46       # QtQuick version2
47       [ run qtquick.cpp /qt5//QtQuick : -platform offscreen : $(CWD)/qtquick.qml ]
48
49       # Help systems.
50       [ link qthelp.cpp      /qt5//QtHelp ]
51
52       # Testing using QtTest. Simple sample
53       # ToDo: better support for "automoc" aka '#include "qttest.moc"'
54       [ run qttest.cpp [ cast _ moccable5-cpp : qttest.cpp ] /qt5//QtTest : : : <define>TEST_MOCK ]
55
56       # Test moc rule
57       [ run mock.cpp mock.h /qt5//QtCore : : : <define>TEST_MOCK ]
58
59       # Test resource compiler
60       [ run rcc.cpp rcc.qrc /qt5//QtCore : : : <rccflags>"-compress 9 -threshold 10" ]
61
62    : # requirements
63    : # default-build
64    : # usage-requirements
65    ;
66 }
67
68