actions.py 998 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import qt5
  9. from pisi.actionsapi import get
  10. #WorkDir="qt-creator-opensource-src-%s" % get.srcVERSION()
  11. def setup():
  12. # pisitools.dosed("qtcreator.pri", "libexec/qtcreator", "lib/qtcreator")
  13. # pisitools.dosed("src/tools/tools.pro", "libexec", "lib")
  14. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  15. -DCMAKE_INSTALL_LIBEXECDIR=lib \
  16. -DWITH_DOCS=ON \
  17. -DBUILD_DEVELOPER_DOCS=ON \
  18. -DBUILD_QBS=OFF \
  19. -DQTC_CLANG_BUILDMODE_MATCH=ON \
  20. -DCLANGTOOLING_LINK_CLANG_DYLIB=ON")
  21. def build():
  22. qt5.make()
  23. def install():
  24. qt5.install()