summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/program_options/.yandex_meta/__init__.py
blob: 431365f3902e4712321fd4368c3e87a488aab62d (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
from devtools.yamaker import boost
from devtools.yamaker.modules import GLOBAL, Linkable, Switch
from devtools.yamaker.project import NixSourceProject


def post_install(self):
    self.yamakes["."] = boost.make_library(self, populate_srcs=True)
    with self.yamakes["."] as program_options:
        program_options.after(
            "CFLAGS", Switch({"DYNAMIC_BOOST": Linkable(CFLAGS=[GLOBAL("-DBOOST_PROGRAM_OPTIONS_DYN_LINK")])})
        )


boost_program_options = NixSourceProject(
    nixattr="boost_program_options",
    arcdir=boost.make_arcdir("program_options"),
    owners=["g:cpp-contrib"],
    copy_sources=[
        "include/boost/",
        "src/",
    ],
    post_install=post_install,
)