blob: 8b938d2cb35a06be129932c95d691f72cb493385 [file] [log] [blame]
Zhanglong Xia24e52742023-06-14 05:25:55 +00001//
2// Copyright (c) 2022 Google LLC.
3// All rights reserved.
4//
5// This document is the property of Google LLC, Inc. It is
6// considered proprietary and confidential information.
7//
8// This document may not be reproduced or transmitted in any form,
9// in whole or in part, without the express written permission of
10// Google LLC.
11
12cc_defaults {
13 name: "threadnetwork_service_default",
14 vintf_fragments: ["threadnetwork-default.xml"],
15 vendor: true,
16 relative_install_path: "hw",
17
18 shared_libs: [
19 "android.hardware.threadnetwork-V1-ndk",
20 "libbase",
21 "libbinder_ndk",
22 "libcutils",
23 "liblog",
24 "libutils",
25 ],
26
Zhanglong Xia24e52742023-06-14 05:25:55 +000027 static_libs: [
28 "openthread-common",
29 "openthread-hdlc",
30 "openthread-platform",
31 "openthread-posix",
Zhanglong Xia7ae6d6f2023-07-03 10:52:45 +080032 "openthread-spi",
Zhanglong Xia24e52742023-06-14 05:25:55 +000033 "openthread-url",
34 ],
35
36 srcs: [
37 "main.cpp",
38 "service.cpp",
39 "thread_chip.cpp",
40 "utils.cpp",
41 ],
42}
43
44cc_binary {
45 name: "android.hardware.threadnetwork-service.sim",
46 defaults: ["threadnetwork_service_default"],
47 init_rc: ["android.hardware.threadnetwork-service.sim.rc"],
Zhanglong Xia5c027012023-06-15 10:15:59 +080048 required: ["ot-rcp"],
Zhanglong Xia24e52742023-06-14 05:25:55 +000049}
50
51cc_binary {
52 name: "android.hardware.threadnetwork-service",
53 defaults: ["threadnetwork_service_default"],
54}
Zhanglong Xia5c027012023-06-15 10:15:59 +080055
56cc_fuzz {
57 name: "android.hardware.threadnetwork-service.fuzzer",
58
59 defaults:["service_fuzzer_defaults"],
60 shared_libs: [
61 "libbinder_ndk",
62 ],
63
64 static_libs: [
65 "android.hardware.threadnetwork-V1-ndk",
66 "libbase",
67 "liblog",
68 "openthread-common",
69 "openthread-hdlc",
70 "openthread-platform",
71 "openthread-posix",
Zhanglong Xia7ae6d6f2023-07-03 10:52:45 +080072 "openthread-spi",
Zhanglong Xia5c027012023-06-15 10:15:59 +080073 "openthread-url",
74 ],
75
76 srcs: [
77 "thread_chip.cpp",
78 "utils.cpp",
79 "fuzzer.cpp",
80 ],
81
82 required: ["ot-rcp"],
83 fuzz_config: {
84 cc: [
85 "zhanglongxia@google.com",
86 ],
87 },
88}