xref: /aosp_15_r20/hardware/interfaces/gnss/aidl/default/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
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
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_binary {
27    name: "android.hardware.gnss-service.example",
28    relative_install_path: "hw",
29    installable: false, // install APEX instead
30    vendor: true,
31    cflags: [
32        "-Wall",
33        "-Wextra",
34    ],
35    shared_libs: [
36        "libbase",
37        "libcutils",
38        "libbinder_ndk",
39        "libhidlbase",
40        "libutils",
41        "liblog",
42        "[email protected]",
43        "[email protected]",
44        "[email protected]",
45        "[email protected]",
46        "[email protected]",
47        "[email protected]",
48        "android.hardware.gnss-V5-ndk",
49    ],
50    srcs: [
51        "AGnssRil.cpp",
52        "AGnss.cpp",
53        "Gnss.cpp",
54        "GnssAntennaInfo.cpp",
55        "GnssAssistanceInterface.cpp",
56        "GnssBatching.cpp",
57        "GnssDebug.cpp",
58        "GnssGeofence.cpp",
59        "GnssNavigationMessageInterface.cpp",
60        "GnssPowerIndication.cpp",
61        "GnssPsds.cpp",
62        "GnssConfiguration.cpp",
63        "GnssMeasurementInterface.cpp",
64        "GnssVisibilityControl.cpp",
65        "MeasurementCorrectionsInterface.cpp",
66        "service.cpp",
67    ],
68    static_libs: [
69        "android.hardware.gnss@common-default-lib",
70    ],
71}
72
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}
104