actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import cmaketools
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. cmaketools.configure("-B build5 -DCMAKE_BUILD_TYPE=Release \
  11. -DCMAKE_INSTALL_PREFIX=/usr \
  12. -DLIB_DESTINATION=/usr/lib")
  13. cmaketools.configure("-B build6 -DCMAKE_BUILD_TYPE=Release \
  14. -DCMAKE_INSTALL_PREFIX=/usr \
  15. -DQT_MAJOR_VERSION=6 \
  16. -DLIB_DESTINATION=/usr/lib")
  17. def build():
  18. shelltools.cd("build5")
  19. cmaketools.make()
  20. shelltools.cd("../build6")
  21. cmaketools.make()
  22. def install():
  23. shelltools.cd("build5")
  24. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. shelltools.cd("../build6")
  26. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. shelltools.cd("..")
  28. pisitools.dodoc("AUTHORS", "TODO", "README*")