actions.py 686 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 https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import mesontools, cmaketools, pisitools
  7. j = ''.join([
  8. ' -DCMAKE_INSTALL_PREFIX=/usr',
  9. ' -DCMAKE_BUILD_TYPE=RelWithDebInfo',
  10. ' -DUSE_SYSTEM_TAGLIB=ON',
  11. ' -DUSE_SYSTEM_PROJECTM=ON',
  12. ' -DCMAKE_CXX_FLAGS="-fpermissive"',
  13. ' -DCMAKE_CXX_STANDARD=17',
  14. ' -B_build -G Ninja -L '
  15. ])
  16. def setup():
  17. cmaketools.configure(j)
  18. def build():
  19. mesontools.build("-C _build")
  20. def install():
  21. mesontools.install("-C _build")
  22. pisitools.dodoc("README-TURKISH.md", "README.md")