actions.py 746 B

123456789101112131415161718192021222324252627282930313233
  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 shelltools, cmaketools, get
  7. j = ''.join([
  8. ' -B_build',
  9. ' -DUSE_VTE=ON',
  10. ' -DAUTO_RUN_TESTING=OFF',
  11. ' -DBUILD_GMOCK=OFF',
  12. ' -DBUILD_TESTING=OFF',
  13. ' -DINSTALL_GTEST=OFF',
  14. ' -DCMAKE_BUILD_TYPE=None',
  15. ' -L '
  16. ])
  17. def setup():
  18. # shelltools.move("src/ct/icons.gresource.cc.tmp", "src/ct/icons.gresource.cc")
  19. cmaketools.configure(j)
  20. def build():
  21. shelltools.cd("_build")
  22. cmaketools.make()
  23. def install():
  24. shelltools.cd("_build")
  25. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. # pisitools.dodoc("../changelog.txt")