blob: 49841a456b094d0f0c822cb87db984337ac93e6e [file] [log] [blame]
Arthur Ishiguroc7ac0b22021-10-13 16:12:37 +00001/*
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 {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
26cc_library_static {
27 name: "libsensorsexampleimpl",
28 vendor: true,
29 shared_libs: [
30 "libbase",
Grace Chengbc2a1b72021-11-09 14:26:23 +000031 "libfmq",
32 "libpower",
Arthur Ishiguroc7ac0b22021-10-13 16:12:37 +000033 "libbinder_ndk",
34 "android.hardware.sensors-V1-ndk",
35 ],
36 export_include_dirs: ["include"],
37 srcs: [
38 "Sensors.cpp",
Grace Chengbc2a1b72021-11-09 14:26:23 +000039 "Sensor.cpp",
Arthur Ishiguroc7ac0b22021-10-13 16:12:37 +000040 ],
41 visibility: [
42 ":__subpackages__",
43 "//hardware/interfaces/tests/extension/sensors:__subpackages__",
44 ],
45}
46
47cc_binary {
48 name: "android.hardware.sensors-service.example",
49 relative_install_path: "hw",
50 init_rc: ["sensors-default.rc"],
51 vintf_fragments: ["sensors-default.xml"],
52 vendor: true,
53 shared_libs: [
54 "libbase",
55 "libbinder_ndk",
Grace Chengbc2a1b72021-11-09 14:26:23 +000056 "libfmq",
57 "libpower",
58 "libcutils",
59 "liblog",
60 "libutils",
Arthur Ishiguroc7ac0b22021-10-13 16:12:37 +000061 "android.hardware.sensors-V1-ndk",
62 ],
63 static_libs: [
64 "libsensorsexampleimpl",
65 ],
66 srcs: ["main.cpp"],
67}