]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | |
1e59de90 | 4 | # LICENSE.txt or copy at https://www.bfgroup.xyz/b2/LICENSE.txt) |
7c673cae FG |
5 | |
6 | import qt5 ; | |
7 | import testing ; | |
8 | import cast ; | |
9 | ||
10 | path-constant CWD : . ; | |
11 | ||
1e59de90 TL |
12 | if ! [ qt5.initialized ] |
13 | { | |
14 | # assuming qt5 from system | |
15 | using qt5 : /usr/ ; | |
16 | ||
17 | project qttest-initialization : ; | |
18 | ||
19 | alias qt-tests-initialization : | |
20 | [ run initialization.cpp /qt5//QtCore ] | |
21 | : # requirements | |
22 | : # default-build | |
23 | : # usage-requirements | |
24 | ; | |
25 | } | |
7c673cae FG |
26 | |
27 | if [ qt5.initialized ] | |
28 | { | |
29 | use-project /boost : ../../../.. ; | |
30 | ||
31 | project qttest | |
32 | : requirements | |
33 | <library>/boost/test//boost_unit_test_framework | |
34 | ; | |
35 | ||
36 | alias qt-tests : | |
37 | # Check for explicit libraries, <use>/qt should not link any lib | |
38 | [ link-fail qtcorefail.cpp : <use>/qt ] | |
39 | ||
40 | [ run qtcore.cpp /qt5//QtCore ] | |
41 | [ run qtsql.cpp /qt5//QtSql ] | |
42 | [ run qtxml.cpp /qt5//QtXml ] | |
43 | [ run qtnetwork.cpp /qt5//QtNetwork ] | |
44 | [ run qtscript.cpp /qt5//QtScript ] | |
45 | [ run qtscripttools.cpp /qt5//QtScriptTools ] | |
46 | [ run qtxmlpatterns.cpp /qt5//QtXmlPatterns ] | |
47 | ||
48 | [ run qtpositioning.cpp /qt5//QtPositioning ] | |
49 | ||
50 | # ToDo: runable example code | |
51 | [ link qtsvg.cpp /qt5//QtSvg ] | |
52 | [ link qtwidgets.cpp /qt5//QtWidgets ] | |
53 | ||
54 | # Multimedia toolkits. | |
55 | [ link qtwebkit.cpp /qt5//QtWebKit ] | |
56 | [ link qtwebkitwidgets.cpp /qt5//QtWebKitWidgets ] | |
57 | [ link qtmultimedia.cpp /qt5//QtMultimedia ] | |
58 | ||
59 | # QtQuick version1 | |
60 | [ link qtdeclarative.cpp /qt5//QtDeclarative ] | |
61 | ||
62 | # QtQuick version2 | |
63 | [ run qtquick.cpp /qt5//QtQuick : "--" -platform offscreen : $(CWD)/qtquick.qml ] | |
64 | ||
65 | [ run qtwebengine.cpp /qt5//QtWebEngine ] | |
66 | [ run qtwebenginewidgets.cpp /qt5//QtWebEngineWidgets ] | |
67 | ||
68 | # QtSerialPort | |
69 | [ run qtserialport.cpp /qt5//QtSerialPort ] | |
70 | ||
71 | [ run qtlocation.cpp /qt5//QtLocation ] | |
72 | ||
73 | [ run qtwebchannel.cpp /qt5//QtWebChannel ] | |
74 | [ run qtwebsockets.cpp /qt5//QtWebSockets ] | |
75 | [ run qtwebview.cpp /qt5//QtWebView ] | |
76 | ||
77 | [ run qtpurchasing.cpp /qt5//QtPurchasing ] | |
78 | ||
79 | [ run qtcharts.cpp /qt5//QtCharts ] | |
80 | ||
81 | [ run qt3dcore.cpp /qt5//Qt3DCore ] | |
82 | [ run qt3drender.cpp /qt5//Qt3DRender ] | |
83 | [ run qt3dinput.cpp /qt5//Qt3DInput ] | |
84 | [ run qt3dlogic.cpp /qt5//Qt3DLogic ] | |
85 | ||
86 | [ run qtdatavisualization.cpp /qt5//QtDataVisualization ] | |
87 | ||
88 | # Qt Connectivity | |
89 | [ run qtbluetooth.cpp /qt5//QtBluetooth ] | |
90 | [ run qtnfc.cpp /qt5//QtNfc ] | |
91 | ||
92 | [ run qtgamepad.cpp /qt5//QtGamepad ] | |
93 | ||
94 | [ run qtscxml.cpp /qt5//QtScxml ] | |
95 | ||
96 | [ run qtserialbus.cpp /qt5//QtSerialBus ] | |
97 | ||
98 | ||
99 | # Help systems. | |
100 | [ link qthelp.cpp /qt5//QtHelp ] | |
101 | ||
102 | # Testing using QtTest. Simple sample | |
103 | # ToDo: better support for "automoc" aka '#include "qttest.moc"' | |
104 | [ run qttest.cpp [ cast _ moccable5-cpp : qttest.cpp ] /qt5//QtTest : : : <define>TEST_MOCK ] | |
105 | ||
106 | # Test moc rule | |
107 | [ run mock.cpp mock.h /qt5//QtCore : : : <define>TEST_MOCK ] | |
108 | ||
109 | # Test resource compiler | |
110 | [ run rcc.cpp rcc.qrc /qt5//QtCore : : : <rccflags>"-compress 9 -threshold 10" ] | |
111 | ||
112 | : # requirements | |
113 | : # default-build | |
114 | : # usage-requirements | |
115 | ; | |
116 | } | |
117 | ||
118 |