actions.py 759 B

1234567891011121314151617181920212223242526272829303132333435
  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
  7. j = ''.join([
  8. ' -DCMAKE_BUILD_TYPE=Release',
  9. ' -DCMAKE_CXX_COMPILER=g++',
  10. ' -DENABLE_CLI=ON',
  11. ' -DENABLE_QT=ON',
  12. ' -DENABLE_GTK=ON',
  13. ' -DENABLE_DAEMON=ON',
  14. ' -DUSE_QT_VERSION=6',
  15. ' -DQt_DIR=/usr/lib/cmake/Qt6',
  16. ' -DINSTALL_LIB=OFF',
  17. ' -DENABLE_TESTS=ON',
  18. ' -DRUN_CLANG_TIDY=OFF',
  19. ' -B_build -G Ninja -L '
  20. ])
  21. def setup():
  22. cmaketools.configure(j)
  23. def build():
  24. mesontools.build("-C _build")
  25. def check():
  26. mesontools.build("-C _build test")
  27. def install():
  28. mesontools.install("-C _build")