blob: 37b6728ae39aeb4afa4f45043f0a7134a41ce390 (
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:
RUST_LIBRARY_FEATURES = features
HostRustLibrary("host-lib")
|