actions.py 791 B

1234567891011121314151617181920212223242526272829
  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 shelltools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import get
  9. def setup():
  10. shelltools.makedirs("build")
  11. shelltools.cd("build")
  12. cmaketools.configure("-DCMAKE_BUILD_TYPE=None \
  13. -DCMAKE_INSTALL_PREFIX=/usr \
  14. -DCMAKE_INSTALL_LIBDIR=lib \
  15. -DBUILD_SHARED_LIBS=ON \
  16. -DBENCHMARK_ENABLE_LTO=ON \
  17. -DBENCHMARK_ENABLE_GTEST_TESTS=OFF", sourceDir="..")
  18. def build():
  19. cmaketools.make("-C build")
  20. def install():
  21. shelltools.cd("build")
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. #pisitools.dodoc("LICENSE", "README.md")