actions.py 691 B

12345678910111213141516171819202122232425
  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, mesontools, pisitools, get
  7. WorkDir = "Kvantum-%s/Kvantum" % get.srcVERSION()
  8. def setup():
  9. pisitools.dosed("style/CMakeLists.txt", "Qt5\ Qt6", "Qt6")
  10. cmaketools.configure("-DENABLE_QT5=ON -B_build5 -G Ninja")
  11. cmaketools.configure("-DENABLE_QT5=OFF -B_build6 -G Ninja")
  12. def build():
  13. mesontools.build("-C _build5")
  14. mesontools.build("-C _build6")
  15. def install():
  16. mesontools.install("-C _build5")
  17. mesontools.install("-C _build6")
  18. pisitools.dodoc("ChangeLog")