actions.py 676 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 cmaketools, mesontools, pisitools, get
  7. WorkDir="libaom-%s" % get.srcVERSION()
  8. j = ''.join([
  9. ' -DCMAKE_BUILD_TYPE=Release',
  10. ' -DBUILD_SHARED_LIBS=1',
  11. ' -DENABLE_TESTS=0',
  12. ' -S . -B build -G Ninja -L '
  13. ])
  14. def setup():
  15. cmaketools.configure(j)
  16. def build():
  17. mesontools.build("-C build")
  18. def install():
  19. mesontools.install("-C build")
  20. pisitools.insinto("/usr/share/pixmaps", "aomedia_logo_200.png", "aom.png")
  21. pisitools.dodoc("AUTHORS", "CHANGELOG", "README.md")