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