1# Copyright (C) 2021 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16LOCAL_DIR := $(GET_LOCAL_DIR)
17
18MODULE := $(LOCAL_DIR)
19
20MODULE_SRCS := $(LOCAL_DIR)/src/lib.rs
21
22MODULE_CRATE_NAME := tipc
23
24MODULE_SDK_LIB_NAME := tipc-rust
25
26MODULE_INCLUDES += \
27	trusty/user/base/lib/tipc/test/include \
28
29MODULE_LIBRARY_EXPORTED_DEPS += \
30	external/rust/crates/arrayvec \
31	trusty/user/base/lib/libc-trusty \
32	$(call FIND_CRATE,log) \
33	trusty/user/base/lib/trusty-std \
34	trusty/user/base/lib/trusty-sys \
35
36MODULE_BINDGEN_ALLOW_TYPES := \
37	handle_t \
38
39MODULE_BINDGEN_ALLOW_VARS := \
40	HSET_.* \
41	IPC_.* \
42	INFINITE_TIME \
43	MAX_USER_HANDLES \
44	USER_BASE_HANDLE \
45	UUID_STR_SIZE \
46
47MODULE_BINDGEN_SRC_HEADER := $(LOCAL_DIR)/bindings.h
48
49MODULE_RUST_TESTS := true
50
51# For test service
52MANIFEST := $(LOCAL_DIR)/manifest.json
53
54include make/library.mk
55