blob: 96fccf2063ca9f94ade51a3dcffe0cf9b2275191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
@template
def HostLibrary(name):
"""Template for libraries."""
HOST_LIBRARY_NAME = name
@template
def HostRustLibrary(name, features=None):
"""Template for Rust libraries."""
HostLibrary(name)
IS_RUST_LIBRARY = True
if features:
HOST_RUST_LIBRARY_FEATURES = features
HostRustLibrary("hostrusttool", ["musthave", "cantlivewithout"])
|