blob: d4b3da3ebc415994eda7b3815208b32311584954 [file] [log] [blame]
Yu-Han Yang274ea0a2020-09-09 17:25:02 -07001/*
2 * Copyright (C) 2020 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
Bob Badourc22b35b2021-02-23 14:26:20 -080017package {
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
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070026cc_binary {
27 name: "android.hardware.gnss-service.example",
28 relative_install_path: "hw",
Jooyung Han78c24f82023-11-04 00:29:07 +090029 installable: false, // install APEX instead
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070030 vendor: true,
31 cflags: [
32 "-Wall",
33 "-Wextra",
34 ],
35 shared_libs: [
36 "libbase",
bohuf001b122021-03-23 14:12:45 -070037 "libcutils",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070038 "libbinder_ndk",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070039 "libhidlbase",
40 "libutils",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070041 "liblog",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070042 "android.hardware.gnss@2.1",
43 "android.hardware.gnss@2.0",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070044 "android.hardware.gnss@1.0",
45 "android.hardware.gnss.measurement_corrections@1.1",
46 "android.hardware.gnss.measurement_corrections@1.0",
47 "android.hardware.gnss.visibility_control@1.0",
Shinru Han0993f512025-03-28 09:09:25 -070048 "android.hardware.gnss-V6-ndk",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070049 ],
50 srcs: [
Shinru Han0d91cbe2021-12-14 12:06:02 +080051 "AGnssRil.cpp",
Shinru Han7f31c142021-11-05 11:56:40 +080052 "AGnss.cpp",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070053 "Gnss.cpp",
Joe Huang37d77dd2021-12-30 13:14:29 +080054 "GnssAntennaInfo.cpp",
Shinru Hand9535a12024-11-09 08:10:18 +000055 "GnssAssistanceInterface.cpp",
Yu-Han Yang3a75dc02021-09-27 01:01:06 -070056 "GnssBatching.cpp",
Joe Huang202b02d2021-11-16 23:09:11 +080057 "GnssDebug.cpp",
Yu-Han Yang3089df32021-09-29 21:31:23 -070058 "GnssGeofence.cpp",
Yu-Han Yang10cf7362021-10-03 22:32:04 -070059 "GnssNavigationMessageInterface.cpp",
Yu-Han Yang24753612020-10-27 14:42:14 -070060 "GnssPowerIndication.cpp",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070061 "GnssPsds.cpp",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070062 "GnssConfiguration.cpp",
Yu-Han Yang04832302020-11-20 09:51:18 -080063 "GnssMeasurementInterface.cpp",
Edwin Tungd7a5de22021-12-08 13:27:51 +080064 "GnssVisibilityControl.cpp",
Edwin Tungbbf7fb92021-12-27 12:13:02 +080065 "MeasurementCorrectionsInterface.cpp",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070066 "service.cpp",
67 ],
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070068 static_libs: [
69 "android.hardware.gnss@common-default-lib",
70 ],
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070071}
Jooyung Han78c24f82023-11-04 00:29:07 +090072
73prebuilt_etc {
74 name: "gnss-default.rc",
75 src: "gnss-default.rc",
76 installable: false,
77}
78
79prebuilt_etc {
80 name: "gnss-default.xml",
81 src: "gnss-default.xml",
82 sub_dir: "vintf",
83 installable: false,
84}
85
86apex {
87 name: "com.android.hardware.gnss",
88 manifest: "apex_manifest.json",
89 file_contexts: "apex_file_contexts",
90 key: "com.android.hardware.key",
91 certificate: ":com.android.hardware.certificate",
92 updatable: false,
93 vendor: true,
94
95 binaries: [
96 "android.hardware.gnss-service.example",
97 ],
98 prebuilts: [
99 "gnss-default.rc",
100 "gnss-default.xml",
101 "android.hardware.location.gps.prebuilt.xml", // permission
102 ],
103}