aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/pybind11/.yandex_meta/__init__.py
blob: 87c6daaf274eaea0a99dd0a18a4cc9219dbe3dcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from devtools.yamaker.arcpath import ArcPath
from devtools.yamaker.modules import Library
from devtools.yamaker.project import NixSourceProject
from devtools.yamaker import python


def post_install(self):
    self.yamakes["."] = self.module(
        Library,
        NO_COMPILER_WARNINGS=True,
        # pybind11 supports TString, hence it requires util dependency
        NO_UTIL=False,
        ADDINCL=[
            ArcPath(f"{self.arcdir}/include", GLOBAL=True),
        ],
    )


pybind11 = NixSourceProject(
    owners=["g:cpp-contrib", "g:python-contrib"],
    nixattr=python.make_nixattr("pybind11"),
    arcdir="contrib/libs/pybind11",
    copy_sources=[
        "include/pybind11/**/*.h",
    ],
    disable_includes=[
        "experimental/optional",
    ],
    post_install=post_install,
)