aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/aws-crt-cpp/.yandex_meta/__init__.py
blob: c8fe06f57df3c811f97bae07a729251f7c0de8b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from devtools.yamaker.modules import Linkable, Switch
from devtools.yamaker.project import CMakeNinjaNixProject


def post_install(self):
    with self.yamakes["."] as m:
        m.after(
            "CFLAGS",
            Switch(
                OS_WINDOWS=Linkable(
                    CFLAGS=["-DAWS_CRT_CPP_EXPORTS"],
                ),
            ),
        )


aws_crt_cpp = CMakeNinjaNixProject(
    arcdir="contrib/restricted/aws/aws-crt-cpp",
    nixattr="aws-crt-cpp",
    post_install=post_install,
)