Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 1 | /* |
| 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 Badour | c22b35b | 2021-02-23 14:26:20 -0800 | [diff] [blame] | 17 | package { |
| 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 Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 26 | cc_binary { |
| 27 | name: "android.hardware.gnss-service.example", |
| 28 | relative_install_path: "hw", |
Jooyung Han | 78c24f8 | 2023-11-04 00:29:07 +0900 | [diff] [blame] | 29 | installable: false, // install APEX instead |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 30 | vendor: true, |
| 31 | cflags: [ |
| 32 | "-Wall", |
| 33 | "-Wextra", |
| 34 | ], |
| 35 | shared_libs: [ |
| 36 | "libbase", |
bohu | f001b12 | 2021-03-23 14:12:45 -0700 | [diff] [blame] | 37 | "libcutils", |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 38 | "libbinder_ndk", |
Yu-Han Yang | 1e1a676 | 2020-09-30 17:01:53 -0700 | [diff] [blame] | 39 | "libhidlbase", |
| 40 | "libutils", |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 41 | "liblog", |
Yu-Han Yang | 1e1a676 | 2020-09-30 17:01:53 -0700 | [diff] [blame] | 42 | "android.hardware.gnss@2.1", |
| 43 | "android.hardware.gnss@2.0", |
Yu-Han Yang | 1e1a676 | 2020-09-30 17:01:53 -0700 | [diff] [blame] | 44 | "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 Han | 0993f51 | 2025-03-28 09:09:25 -0700 | [diff] [blame] | 48 | "android.hardware.gnss-V6-ndk", |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 49 | ], |
| 50 | srcs: [ |
Shinru Han | 0d91cbe | 2021-12-14 12:06:02 +0800 | [diff] [blame] | 51 | "AGnssRil.cpp", |
Shinru Han | 7f31c14 | 2021-11-05 11:56:40 +0800 | [diff] [blame] | 52 | "AGnss.cpp", |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 53 | "Gnss.cpp", |
Joe Huang | 37d77dd | 2021-12-30 13:14:29 +0800 | [diff] [blame] | 54 | "GnssAntennaInfo.cpp", |
Shinru Han | d9535a1 | 2024-11-09 08:10:18 +0000 | [diff] [blame] | 55 | "GnssAssistanceInterface.cpp", |
Yu-Han Yang | 3a75dc0 | 2021-09-27 01:01:06 -0700 | [diff] [blame] | 56 | "GnssBatching.cpp", |
Joe Huang | 202b02d | 2021-11-16 23:09:11 +0800 | [diff] [blame] | 57 | "GnssDebug.cpp", |
Yu-Han Yang | 3089df3 | 2021-09-29 21:31:23 -0700 | [diff] [blame] | 58 | "GnssGeofence.cpp", |
Yu-Han Yang | 10cf736 | 2021-10-03 22:32:04 -0700 | [diff] [blame] | 59 | "GnssNavigationMessageInterface.cpp", |
Yu-Han Yang | 2475361 | 2020-10-27 14:42:14 -0700 | [diff] [blame] | 60 | "GnssPowerIndication.cpp", |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 61 | "GnssPsds.cpp", |
Yu-Han Yang | 1e1a676 | 2020-09-30 17:01:53 -0700 | [diff] [blame] | 62 | "GnssConfiguration.cpp", |
Yu-Han Yang | 0483230 | 2020-11-20 09:51:18 -0800 | [diff] [blame] | 63 | "GnssMeasurementInterface.cpp", |
Edwin Tung | d7a5de2 | 2021-12-08 13:27:51 +0800 | [diff] [blame] | 64 | "GnssVisibilityControl.cpp", |
Edwin Tung | bbf7fb9 | 2021-12-27 12:13:02 +0800 | [diff] [blame] | 65 | "MeasurementCorrectionsInterface.cpp", |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 66 | "service.cpp", |
| 67 | ], |
Yu-Han Yang | 1e1a676 | 2020-09-30 17:01:53 -0700 | [diff] [blame] | 68 | static_libs: [ |
| 69 | "android.hardware.gnss@common-default-lib", |
| 70 | ], |
Yu-Han Yang | 274ea0a | 2020-09-09 17:25:02 -0700 | [diff] [blame] | 71 | } |
Jooyung Han | 78c24f8 | 2023-11-04 00:29:07 +0900 | [diff] [blame] | 72 | |
| 73 | prebuilt_etc { |
| 74 | name: "gnss-default.rc", |
| 75 | src: "gnss-default.rc", |
| 76 | installable: false, |
| 77 | } |
| 78 | |
| 79 | prebuilt_etc { |
| 80 | name: "gnss-default.xml", |
| 81 | src: "gnss-default.xml", |
| 82 | sub_dir: "vintf", |
| 83 | installable: false, |
| 84 | } |
| 85 | |
| 86 | apex { |
| 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 | } |