__init__.py 803 B

123456789101112131415161718192021222324252627282930
  1. from devtools.yamaker.arcpath import ArcPath
  2. from devtools.yamaker.modules import Library
  3. from devtools.yamaker.project import NixSourceProject
  4. from devtools.yamaker import python
  5. def post_install(self):
  6. self.yamakes["."] = self.module(
  7. Library,
  8. NO_COMPILER_WARNINGS=True,
  9. # pybind11 supports TString, hence it requires util dependency
  10. NO_UTIL=False,
  11. ADDINCL=[
  12. ArcPath(f"{self.arcdir}/include", GLOBAL=True),
  13. ],
  14. )
  15. pybind11 = NixSourceProject(
  16. owners=["g:cpp-contrib", "g:python-contrib"],
  17. nixattr=python.make_nixattr("pybind11"),
  18. arcdir="contrib/libs/pybind11",
  19. copy_sources=[
  20. "include/pybind11/**/*.h",
  21. ],
  22. disable_includes=[
  23. "experimental/optional",
  24. ],
  25. post_install=post_install,
  26. )