actions.py 833 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt.
  6. from inary.actionsapi import cmaketools
  7. from inary.actionsapi import shelltools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def setup():
  11. options = "\-DCMAKE_BUILD_TYPE=Release \
  12. -DFREEGLUT_BUILD_DEMOS=OFF \
  13. "
  14. if get.buildTYPE() == "emul32":
  15. shelltools.export("CFLAGS", "-m32")
  16. shelltools.export("CXXFLAGS", "-m32")
  17. options += "-DFREEGLUT_BUILD_DEMOS=OFF \
  18. "
  19. cmaketools.configure(options)
  20. def build():
  21. cmaketools.make()
  22. def install():
  23. cmaketools.install()
  24. inarytools.dodoc("AUTHORS", "ChangeLog", "README")
  25. inarytools.dohtml("doc/*")