actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/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 shelltools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.system("ln -rsf googletest-release-1.15.2/googlemock third_party/googletest/googlemock")
  12. shelltools.system("ln -rsf googletest-release-1.15.2/googletest third_party/googletest/googletest")
  13. shelltools.makedirs("build")
  14. shelltools.cd("build")
  15. cmaketools.configure("DgRPC_INSTALL=ON \
  16. -DgRPC_ABSL_PROVIDER=package \
  17. -DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF \
  18. -DgRPC_CARES_PROVIDER=package \
  19. -DgRPC_PROTOBUF_PROVIDER=package \
  20. -DgRPC_RE2_PROVIDER=package \
  21. -DgRPC_SSL_PROVIDER=package \
  22. -DgRPC_ZLIB_PROVIDER=package \
  23. -DgRPC_BUILD_TESTS=$(usex test) \
  24. -DCMAKE_CXX_STANDARD=17", sourceDir="..")
  25. def build():
  26. cmaketools.make("-C build")
  27. def install():
  28. shelltools.cd("build")
  29. cmaketools.install()
  30. #cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. #pisitools.dodoc("LICENSE", "README.md")