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