aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/zlib/.yandex_meta/__init__.py
blob: 7df7b0806bfbd03fb6692e64f3aa4048bcc043f4 (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
from devtools.yamaker.modules import Linkable, Switch
from devtools.yamaker.project import GNUMakeNixProject


def post_install(self):
    with self.yamakes["."] as zlib:
        zlib.CFLAGS.remove("-DHAVE_HIDDEN")
        zlib.after("CFLAGS", Switch({"NOT MSVC": Linkable(CFLAGS=["-DHAVE_HIDDEN"])}))


zlib = GNUMakeNixProject(
    owners=["g:cpp-contrib"],
    arcdir="contrib/libs/zlib",
    nixattr="zlib",
    makeflags=["libz.a"],
    inclink={"include": ["zconf.h", "zlib.h"]},
    addincl_global={
        ".": {"./include"},
    },
    disable_includes={
        # if defined(VMS)
        "unixio.h",
    },
    post_install=post_install,
)