aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/fmt/.yandex_meta/__init__.py
blob: 0be6a2047bada55f2f7b29d32c9e35c3f340625a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from devtools.yamaker.modules import GLOBAL
from devtools.yamaker.project import CMakeNinjaNixProject


def post_install(self):
    with self.yamakes["."] as lib:
        lib.CFLAGS = [GLOBAL("-DFMT_EXPORT")]


fmt = CMakeNinjaNixProject(
    arcdir="contrib/libs/fmt",
    nixattr="fmt_8",
    disable_includes=[
        "experimental/string_view",
    ],
    copy_sources=[
        "include/**/*.h",
    ],
    post_install=post_install,
)