actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2
  5. # See the file http://www.gnu.org/copyleft/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import mesontools
  11. def setup():
  12. options = " -Dbrotli=disabled \
  13. -Dintrospection=enabled"
  14. #if get.buildTYPE() == "_emul32":
  15. #options += " --libdir=/usr/lib32 \
  16. #--bindir=/usr/bin32 \
  17. #--sbindir=/usr/sbin32 \
  18. #-Dintrospection=disabled \
  19. #-Dtls_check=false"
  20. #shelltools.export("CC", "%s -m32" % get.CC())
  21. #shelltools.export("CXX", "%s -m32" % get.CXX())
  22. #shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  23. mesontools.configure(options)
  24. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. mesontools.build
  27. def install():
  28. mesontools.install()
  29. if get.buildTYPE() == "_emul32":
  30. pisitools.removeDir("/usr/bin32")
  31. pisitools.removeDir("/usr/sbin32")
  32. pisitools.dodoc("README", "NEWS", "AUTHORS")