actions.py 905 B

12345678910111213141516171819202122232425262728293031323334353637
  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_BUILD_TYPE=Release',
  9. ' -DCMAKE_INSTALL_PREFIX=/usr',
  10. ' -DCMAKE_INSTALL_LIBDIR=lib',
  11. ' -DCMAKE_C_COMPILER=gcc',
  12. ' -DCMAKE_CXX_COMPILER=g++',
  13. ' -DUNIX_STRUCTURE=ON',
  14. ' -DENABLE_JACK=ON',
  15. ' -DBUILD_VST=OFF',
  16. ' -DBUILD_BROWSER=OFF',
  17. ' -DOpenGL_GL_PREFERENCE=GLVND',
  18. ' -DENABLE_VLC=OFF',
  19. ' -DENABLE_LIBFDK=ON',
  20. ' -DENABLE_AJA=OFF',
  21. ' -DENABLE_NEW_MPEGTS_OUTPUT=OFF',
  22. ' -B_build -G Ninja -L '
  23. ])
  24. def setup():
  25. cmaketools.configure(j)
  26. def build():
  27. mesontools.build("-C _build")
  28. def install():
  29. mesontools.install("-C _build")
  30. pisitools.dodoc("CONTRIBUTING*", "COPYING*", "README*")