• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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_binary {
13    name: "android.hardware.threadnetwork-service",
14    vendor: true,
15    relative_install_path: "hw",
16
17    shared_libs: [
18        "libbinder_ndk",
19        "liblog",
20    ],
21
22    static_libs: [
23        "android.hardware.threadnetwork-V1-ndk",
24        "libbase",
25        "libcutils",
26        "libutils",
27        "openthread-common",
28        "openthread-hdlc",
29        "openthread-platform",
30        "openthread-posix",
31        "openthread-spi",
32        "openthread-url",
33    ],
34
35    stl: "c++_static",
36
37    srcs: [
38        "main.cpp",
39        "service.cpp",
40        "socket_interface.cpp",
41        "thread_chip.cpp",
42        "utils.cpp",
43    ],
44}
45
46cc_fuzz {
47    name: "android.hardware.threadnetwork-service.fuzzer",
48
49    defaults: ["service_fuzzer_defaults"],
50    shared_libs: [
51        "libbinder_ndk",
52    ],
53
54    static_libs: [
55        "android.hardware.threadnetwork-V1-ndk",
56        "libbase",
57        "liblog",
58        "openthread-common",
59        "openthread-hdlc",
60        "openthread-platform",
61        "openthread-posix",
62        "openthread-spi",
63        "openthread-url",
64    ],
65
66    srcs: [
67        "socket_interface.cpp",
68        "thread_chip.cpp",
69        "utils.cpp",
70        "fuzzer.cpp",
71    ],
72
73    fuzz_config: {
74        cc: [
75            "zhanglongxia@google.com",
76        ],
77    },
78}
79
80prebuilt_etc {
81    name: "threadnetwork-default.xml",
82    src: "threadnetwork-default.xml",
83    sub_dir: "vintf",
84    installable: false,
85}
86
87prebuilt_etc {
88    name: "threadnetwork-service.rc",
89    src: "threadnetwork-service.rc",
90    installable: false,
91}
92
93apex {
94    name: "com.android.hardware.threadnetwork",
95    manifest: "manifest.json",
96    file_contexts: "file_contexts",
97    key: "com.android.hardware.key",
98    certificate: ":com.android.hardware.certificate",
99    updatable: false,
100    vendor: true,
101
102    binaries: [
103        "android.hardware.threadnetwork-service",
104        "ot-rcp",
105    ],
106
107    prebuilts: [
108        "threadnetwork-default.xml", // vintf_fragment
109        "threadnetwork-service.rc", // init_rc
110        "android.hardware.thread_network.prebuilt.xml", // permission
111    ],
112}
113