wscript 1015 B

12345678910111213141516171819202122232425262728
  1. #! /usr/bin/env python
  2. # encoding: utf-8#
  3. # Federico Pellegrin, 2016 (fedepell)
  4. # Simple example with custom local extra tool to be able to use at the same
  5. # time both qt5 and Python qt5. Both have a handler to some extensions
  6. # (qrc/ui) so the last one loaded will overwrite the previous one.
  7. # The small extra tool will just override the handler and pass to the
  8. # correct one as needed. Must be loaded after qt5 and pyqt5.
  9. #
  10. def options(opt):
  11. # Load what needed for qt5 and pyqt5 and chainer as *last* so it
  12. # will chain to the proper one depending on feature
  13. opt.load('compiler_cxx qt5 python pyqt5')
  14. opt.load('qtchainer', tooldir='qtchainer')
  15. def configure(conf):
  16. conf.load('compiler_cxx qt5 python pyqt5 qtchainer')
  17. conf.check_python_version((2,7,4))
  18. def build(bld):
  19. # Build both pyqt5 and qt5.
  20. # - qt5 is from demos/qt5, just a reference to waflogo.svg has been
  21. # fixed as the directory is not one level deeper in this playground
  22. # - pyqt5 is from playground/pyqt5
  23. bld.recurse("pyqt5 qt5")