blob: da173f925deeb45677a4425c48e7cbb5940ae626 [file] [log] [blame]
Arthur Ishiguroa257b782021-08-04 10:40:29 -07001/*
2 * Copyright (C) 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
Aditya Choudharyad2ba1b2024-02-05 15:45:22 +000018 default_team: "trendy_team_context_hub",
Arthur Ishiguroa257b782021-08-04 10:40:29 -070019 // See: http://go/android-license-faq
20 // A large-scale-change added 'default_applicable_licenses' to import
21 // all of the 'license_kinds' from "hardware_interfaces_license"
22 // to get the below license kinds:
23 // SPDX-license-identifier-Apache-2.0
24 default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27cc_library_static {
28 name: "libcontexthubexampleimpl",
29 vendor: true,
30 shared_libs: [
31 "libbase",
32 "libbinder_ndk",
Yifei Zhang51eba2e2024-10-24 15:11:54 -070033 "android.hardware.contexthub-V4-ndk",
Arthur Ishiguroa257b782021-08-04 10:40:29 -070034 ],
35 export_include_dirs: ["include"],
36 srcs: [
37 "ContextHub.cpp",
38 ],
39 visibility: [
40 ":__subpackages__",
41 "//hardware/interfaces/tests/extension/contexthub:__subpackages__",
42 ],
43}
44
45cc_binary {
46 name: "android.hardware.contexthub-service.example",
47 relative_install_path: "hw",
48 init_rc: ["contexthub-default.rc"],
49 vintf_fragments: ["contexthub-default.xml"],
50 vendor: true,
51 shared_libs: [
52 "libbase",
53 "libbinder_ndk",
Yifei Zhang51eba2e2024-10-24 15:11:54 -070054 "android.hardware.contexthub-V4-ndk",
Arthur Ishiguroa257b782021-08-04 10:40:29 -070055 ],
56 static_libs: [
57 "libcontexthubexampleimpl",
58 ],
59 srcs: ["main.cpp"],
60}
Jooyung Han798af3b2023-09-19 14:03:44 +090061
62prebuilt_etc {
63 name: "android.hardware.contexthub-service.example.rc",
64 src: "android.hardware.contexthub-service.example.rc",
65 installable: false,
66}
67
68prebuilt_etc {
69 name: "contexthub-default.xml",
70 src: "contexthub-default.xml",
71 sub_dir: "vintf",
72 installable: false,
73}
74
75apex {
76 name: "com.android.hardware.contexthub",
77 vendor: true,
78 manifest: "apex_manifest.json",
79 file_contexts: "apex_file_contexts",
80 key: "com.android.hardware.key",
81 certificate: ":com.android.hardware.certificate",
82 updatable: false,
83
84 binaries: [
85 "android.hardware.contexthub-service.example",
86 ],
87 prebuilts: [
88 "android.hardware.contexthub-service.example.rc",
89 "contexthub-default.xml",
90 ],
91}