jamroot.jam 3.2 KB

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