aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/apache/avro/.yandex_meta/__init__.py
blob: 3b03915f17f341bd31eec1d4de332cbaf252b0bd (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
from devtools.yamaker import boost
from devtools.yamaker.project import CMakeNinjaNixProject


def post_install(self):
    with self.yamakes["."] as m:
        m.CFLAGS.remove("-DAVRO_DYN_LINK")
        m.PEERDIR += [
            boost.make_arcdir("any"),
            boost.make_arcdir("asio"),
            boost.make_arcdir("crc"),
            boost.make_arcdir("format"),
            boost.make_arcdir("math"),
        ]


apache_avro = CMakeNinjaNixProject(
    owners=["g:yql", "g:cpp-contrib"],
    arcdir="contrib/libs/apache/avro",
    nixattr="avro-cpp",
    ignore_commands=["tree2", "avrogencpp"],
    nixsrcdir="source/lang/c++",
    copy_sources=[
        "api/*.hh",
    ],
    inclink={
        # ClickHouse invokes CMake INSTALL which copies avro headers
        # from source/lang/c++/api/*.hh to avro/*.hh.
        # Emulate this step via inclink
        "avro": ["api/*.hh"]
    },
    build_targets=[
        "avrocpp",
    ],
    install_targets=[
        "avrocpp",
    ],
    post_install=post_install,
)