aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/lzma/.yandex_meta/__init__.py
blob: 29e2a09e7e9310d35ff53344ee7bbd6c7ad764dd (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
38
39
40
41
42
43
44
45
46
47
from devtools.yamaker.modules import GLOBAL
from devtools.yamaker.project import GNUMakeNixProject


def post_install(self):
    with self.yamakes["."] as lzma:
        lzma.CFLAGS += [GLOBAL("-DLZMA_API_STATIC")]


lzma = GNUMakeNixProject(
    arcdir="contrib/libs/lzma",
    nixattr="xz",
    flags=["--localedir=/var/empty"],
    disable_includes=[
        "crc32_arm64.h",
        "crc32_table_be.h",
        "crc64_table_be.h",
        "dpmi.h",
        "invent.h",
        "lz_encoder_hash_table.h",
        "machine/hal_sysinfo.h",
        "proto/",
        "os2.h",
        "sha2.h",
        "sha256.h",
        "sys/capsicum.h",
        "sys/syspage.h",
        # if defined(__VMS)
        "lib$routines.h",
        "ssdef.h",
        "syidef.h",
        # if defined(__sun)
        "sys/byteorder.h",
    ],
    install_targets=["lzma"],
    install_subdir="src",
    addincl_global={
        ".": {"./liblzma/api"},
    },
    platform_dispatchers=[
        "common/config.h",
    ],
    post_install=post_install,
)

# ChangeLog file is just a git log, it is not intended for humans, yet increases diff size dramatically
lzma.copy_top_sources_except.add("ChangeLog")