actions.py 748 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import pisitools
  8. def setup():
  9. cmaketools.configure("-B build-qt5 \
  10. -DUSE_QT6=OFF \
  11. -DCMAKE_INSTALL_PREFIX=/usr \
  12. -DCMAKE_INSTALL_LIBDIR=lib")
  13. cmaketools.configure("-B build-qt6 \
  14. -DUSE_QT6=ON \
  15. -DCMAKE_INSTALL_PREFIX=/usr \
  16. -DCMAKE_INSTALL_LIBDIR=lib")
  17. def build():
  18. cmaketools.make("-C build-qt5")
  19. cmaketools.make("-C build-qt6")
  20. def install():
  21. cmaketools.install("-C build-qt5")
  22. cmaketools.install("-C build-qt6")
  23. pisitools.dodoc("AUTHORS", "COPYING", "README.md")