actions.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/usr/bin/env 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 pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.makedirs("Release")
  12. shelltools.cd("Release")
  13. cmaketools.configure("-DKICAD_STABLE_VERSION=ON \
  14. -DKICAD_REPO_NAME=stable \
  15. -DCMAKE_BUILD_TYPE=Release \
  16. -DCMAKE_INSTALL_PREFIX=/usr \
  17. -DKICAD_SKIP_BOOST=ON \
  18. -DKICAD_SCRIPTING=ON \
  19. -DKICAD_SCRIPTING_MODULES=ON \
  20. -DKICAD_USE_OCE=ON \
  21. -DKICAD_USE_OCC=ON \
  22. -DKICAD_USE_EGL=1 \
  23. -DKICAD_SCRIPTING_WXPYTHON=OFF \
  24. -DKICAD_BUILD_QA_TESTS=OFF \
  25. -DKICAD_I18N_UNIX_STRICT_PATH=ON \
  26. -DBUILD_GITHUB_PLUGIN=ON", sourceDir="..")
  27. #shelltools.cd("..")
  28. #shelltools.cd("kicad-i18n-5.1.5")
  29. #shelltools.makedirs("Release")
  30. #shelltools.cd("Release")
  31. #cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  32. #-DKICAD_I18N_UNIX_STRICT_PATH=ON", sourceDir="..")
  33. #shelltools.cd("..")
  34. def build():
  35. shelltools.cd("Release")
  36. cmaketools.make()
  37. def install():
  38. shelltools.cd("Release")
  39. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  40. #shelltools.cd("..")
  41. #pisitools.dodoc("AUTHORS*", "CHANGELOG*", "README*")