aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libtiff/.yandex_meta/__init__.py
blob: 6913ed710fd568425f0bd5297e472e0e43b85945 (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
31
32
33
34
35
36
37
from devtools.yamaker.modules import Linkable, Switch
from devtools.yamaker.project import CMakeNinjaNixProject


def post_install(self):
    m = self.yamakes["."]
    # Support Windows (if it is configured).
    m.SRCS.remove("tif_unix.c")
    m.after(
        "SRCS",
        Switch(
            OS_WINDOWS=Linkable(SRCS=["tif_win32.c"]),
            default=Linkable(SRCS=["tif_unix.c"]),
        ),
    )


libtiff = CMakeNinjaNixProject(
    owners=["g:images", "fedorenko"],
    arcdir="contrib/libs/libtiff",
    nixattr="libtiff",
    build_targets=["tiff", "tiffxx"],
    disable_includes=[
        "jbig.h",
        "libdeflate.h",
        "Lerc_c_api.h",
        "LIBJPEG_12_PATH",
    ],
    install_subdir="libtiff",
    put_with={"tiff": {"tiffxx"}},
    copy_sources=[
        "tif_win32.c",
        "tiffio.hxx",
    ],
    addincl_global={".": {"."}},
    post_install=post_install,
)