• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6import qt5 ;
7import testing ;
8import cast ;
9
10path-constant CWD : . ;
11
12
13if [ 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      [ run qtpositioning.cpp  /qt5//QtPositioning  ]
35
36      # ToDo: runable example code
37      [ link qtsvg.cpp /qt5//QtSvg ]
38      [ link qtwidgets.cpp /qt5//QtWidgets ]
39
40      # Multimedia toolkits.
41      [ link qtwebkit.cpp /qt5//QtWebKit ]
42      [ link qtwebkitwidgets.cpp /qt5//QtWebKitWidgets ]
43      [ link qtmultimedia.cpp /qt5//QtMultimedia ]
44
45      # QtQuick version1
46      [ link qtdeclarative.cpp /qt5//QtDeclarative ]
47
48      # QtQuick version2
49      [ run qtquick.cpp /qt5//QtQuick : "--" -platform offscreen : $(CWD)/qtquick.qml ]
50
51      [ run qtwebengine.cpp /qt5//QtWebEngine ]
52      [ run qtwebenginewidgets.cpp /qt5//QtWebEngineWidgets ]
53
54      # QtSerialPort
55      [ run qtserialport.cpp /qt5//QtSerialPort ]
56
57      [ run qtlocation.cpp  /qt5//QtLocation  ]
58
59      [ run qtwebchannel.cpp /qt5//QtWebChannel ]
60      [ run qtwebsockets.cpp /qt5//QtWebSockets ]
61      [ run qtwebview.cpp /qt5//QtWebView ]
62
63      [ run qtpurchasing.cpp /qt5//QtPurchasing ]
64
65      [ run qtcharts.cpp  /qt5//QtCharts  ]
66
67      [ run qt3dcore.cpp   /qt5//Qt3DCore ]
68      [ run qt3drender.cpp /qt5//Qt3DRender ]
69      [ run qt3dinput.cpp  /qt5//Qt3DInput ]
70      [ run qt3dlogic.cpp  /qt5//Qt3DLogic ]
71
72      [ run qtdatavisualization.cpp /qt5//QtDataVisualization ]
73
74      # Qt Connectivity
75      [ run qtbluetooth.cpp /qt5//QtBluetooth ]
76      [ run qtnfc.cpp /qt5//QtNfc ]
77
78      [ run qtgamepad.cpp /qt5//QtGamepad ]
79
80      [ run qtscxml.cpp /qt5//QtScxml ]
81
82      [ run qtserialbus.cpp /qt5//QtSerialBus ]
83
84
85      # Help systems.
86      [ link qthelp.cpp      /qt5//QtHelp ]
87
88      # Testing using QtTest. Simple sample
89      # ToDo: better support for "automoc" aka '#include "qttest.moc"'
90      [ run qttest.cpp [ cast _ moccable5-cpp : qttest.cpp ] /qt5//QtTest : : : <define>TEST_MOCK ]
91
92      # Test moc rule
93      [ run mock.cpp mock.h /qt5//QtCore : : : <define>TEST_MOCK ]
94
95      # Test resource compiler
96      [ run rcc.cpp rcc.qrc /qt5//QtCore : : : <rccflags>"-compress 9 -threshold 10" ]
97
98   : # requirements
99   : # default-build
100   : # usage-requirements
101   ;
102}
103
104
105