actions.py 784 B

1234567891011121314151617181920212223242526272829303132
  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 cmaketools, mesontools, pisitools
  7. j = ''.join([
  8. ' -DCMAKE_INSTALL_PREFIX=/usr',
  9. ' -DCMAKE_INSTALL_LIBDIR=lib',
  10. ' -DPYTHON_EXECUTABLE=/usr/bin/python3',
  11. ' -DZ3_USE_LIB_GMP=True',
  12. ' -DZ3_LINK_TIME_OPTIMIZATION=True',
  13. ' -DZ3_BUILD_LIBZ3_SHARED=True',
  14. ' -DZ3_BUILD_PYTHON_BINDINGS=True',
  15. ' -DZ3_INSTALL_PYTHON_BINDINGS=True',
  16. ' PYTHON=/usr/bin/python3',
  17. ' -B_build -G Ninja -L '
  18. ])
  19. def setup():
  20. cmaketools.configure(j)
  21. def build():
  22. mesontools.build("-C _build")
  23. def install():
  24. mesontools.install("-C _build")
  25. pisitools.dodoc("RELEASE_NOTES.md")