actions.py 826 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. shelltools.makedirs("build")
  11. shelltools.cd("build")
  12. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  13. -DCMAKE_INSTALL_LIBDIR=lib \
  14. -DUSE_QT5=ON \
  15. -DUSE_QT5=ON \
  16. -DUSE_LINK_TIME_OPTIMIZATION=ON", sourceDir=".." )
  17. def build():
  18. shelltools.cd("build")
  19. cmaketools.make()
  20. def install():
  21. shelltools.cd("build")
  22. cmaketools.install()
  23. shelltools.cd("..")
  24. pisitools.dodoc("README*", "LICENSE")