actions.py 687 B

12345678910111213141516171819202122232425
  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/copyleft/gpl.txt
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. cmaketools.configure(" -DCMAKE_INSTALL_PREFIX=/usr \
  11. -DRAPIDJSON_HAS_STDSTRING=ON \
  12. -DCMAKE_VERBOSE_MAKEFILE=ON \
  13. -DRAPIDJSON_BUILD_EXAMPLES=OFF \
  14. -DRAPIDJSON_BUILD_TESTS=OFF \
  15. -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF \
  16. -DCMAKE_BUILD_TYPE=None ")
  17. def build():
  18. cmaketools.make()
  19. def install():
  20. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())