actions.py 970 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import get
  11. pisitools.cxxflags.add("-std=gnu++11")
  12. ver = get.srcVERSION()
  13. def setup():
  14. cmaketools.configure("-DCMAKE_INSTALL_SYSCONFDIR=/etc \
  15. -DCMAKE_SKIP_RPATH=True \
  16. -DBUILD_WSI_XCB_SUPPORT=On \
  17. -DBUILD_WSI_XLIB_SUPPORT=On \
  18. -DBUILD_WSI_WAYLAND_SUPPORT=On \
  19. -DBUILD_CUBE=ON \
  20. -DBUILD_VULKANINFO=ON \
  21. -DBUILD_ICD=OFF \
  22. ")
  23. def build():
  24. cmaketools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" %get.installDIR())
  27. pisitools.dodoc("README.md", "CONTRIBUTING.md", "LICENSE.txt", "CODE_OF_CONDUCT.md", "GOVERNANCE.md")