actions.py 697 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env 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, shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. parameters = ' '.join([
  11. '-B build',
  12. '-DRANGE_V3_TESTS=OFF',
  13. '-DRANGE_V3_HEADER_CHECKS=OFF',
  14. '-DRANGE_V3_EXAMPLES=OFF',
  15. '-DRANGE_V3_PERF=OFF'
  16. ])
  17. cmaketools.configure(parameters)
  18. def build():
  19. shelltools.cd('build')
  20. cmaketools.make()
  21. def install():
  22. shelltools.cd('build')
  23. cmaketools.install()
  24. pisitools.dodoc('../LICENSE.txt')