actions.py 883 B

1234567891011121314151617181920212223242526272829
  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. #pisitools.dosed('CMakeLists.txt', '"cmake"', '"lib/cmake"')
  12. shelltools.system("mkdir build")
  13. shelltools.cd("build")
  14. cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
  15. -DUSE_SHARED_MBEDTLS_LIBRARY=ON \
  16. -DMBEDTLS_FATAL_WARNINGS=OFF \
  17. -DINSTALL_MBEDTLS_HEADERS=ON", sourceDir="..")
  18. def build():
  19. cmaketools.make("-C build")
  20. def install():
  21. cmaketools.rawInstall("DESTDIR=%s -C build" % get.installDIR())
  22. pisitools.dodoc("ChangeLog", "LICENSE", "README*")