__init__.py 705 B

123456789101112131415161718192021222324
  1. from devtools.yamaker.project import CMakeNinjaNixProject
  2. def post_install(self):
  3. # Prefix sfparse_parser_dict to avoid conflicts with nghttp2 which also bundles sfparse library
  4. with self.yamakes["."] as m:
  5. m.CFLAGS.append("-Dsfparse_parser_dict=nghttp3_sfparse_parser_dict")
  6. nghttp3 = CMakeNinjaNixProject(
  7. license="MIT",
  8. flags=["-DENABLE_LIB_ONLY=1"],
  9. owners=["g:devtools-contrib", "g:yandex-io"],
  10. nixattr="nghttp3",
  11. arcdir="contrib/libs/nghttp3",
  12. post_install=post_install,
  13. platform_dispatchers=["config.h"],
  14. addincl_global={".": {"./lib/includes"}},
  15. )
  16. nghttp3.copy_top_sources_except |= {
  17. # This is just a git log, ignore it
  18. "ChangeLog",
  19. }