actions.py 773 B

1234567891011121314151617181920212223242526272829303132333435
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import mesontools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. if not get.buildTYPE() == "emul32":
  11. options = "-Dudev=true -Dintel=enabled \
  12. "
  13. if get.buildTYPE() == "emul32":
  14. options = " --libdir=lib32 \
  15. -Dudev=false \
  16. -Dintel=enabled \
  17. -Dvalgrind=disabled"
  18. mesontools.configure(options)
  19. def build():
  20. mesontools.build()
  21. def install():
  22. mesontools.install()
  23. if get.buildTYPE() == "emul32":
  24. return