blob: 736e808b49b9e3a77e68ac5e0b7add5c2743aa37 [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",
32 "openthread-url",
33 ],
34
35 srcs: [
36 "main.cpp",
37 "service.cpp",
38 "thread_chip.cpp",
39 "utils.cpp",
40 ],
41}
42
43cc_binary {
44 name: "android.hardware.threadnetwork-service.sim",
45 defaults: ["threadnetwork_service_default"],
46 init_rc: ["android.hardware.threadnetwork-service.sim.rc"],
Zhanglong Xia5c027012023-06-15 10:15:59 +080047 required: ["ot-rcp"],
Zhanglong Xia24e52742023-06-14 05:25:55 +000048}
49
50cc_binary {
51 name: "android.hardware.threadnetwork-service",
52 defaults: ["threadnetwork_service_default"],
53}
Zhanglong Xia5c027012023-06-15 10:15:59 +080054
55cc_fuzz {
56 name: "android.hardware.threadnetwork-service.fuzzer",
57
58 defaults:["service_fuzzer_defaults"],
59 shared_libs: [
60 "libbinder_ndk",
61 ],
62
63 static_libs: [
64 "android.hardware.threadnetwork-V1-ndk",
65 "libbase",
66 "liblog",
67 "openthread-common",
68 "openthread-hdlc",
69 "openthread-platform",
70 "openthread-posix",
71 "openthread-url",
72 ],
73
74 srcs: [
75 "thread_chip.cpp",
76 "utils.cpp",
77 "fuzzer.cpp",
78 ],
79
80 required: ["ot-rcp"],
81 fuzz_config: {
82 cc: [
83 "zhanglongxia@google.com",
84 ],
85 },
86}