blob: 23677ed4cce55e95ae66db50a0c070d3fda3aa60 [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
17cc_binary {
18 name: "android.hardware.gnss-service.example",
19 relative_install_path: "hw",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070020 init_rc: [
21 "gnss-default.rc",
22 ],
23 vintf_fragments: [
24 "gnss-default.xml",
25 "gnss@2.1-service.xml",
26 ],
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070027 vendor: true,
28 cflags: [
29 "-Wall",
30 "-Wextra",
31 ],
32 shared_libs: [
33 "libbase",
34 "libbinder_ndk",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070035 "libhidlbase",
36 "libutils",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070037 "liblog",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070038 "android.hardware.gnss@2.1",
39 "android.hardware.gnss@2.0",
40 "android.hardware.gnss@1.1",
41 "android.hardware.gnss@1.0",
42 "android.hardware.gnss.measurement_corrections@1.1",
43 "android.hardware.gnss.measurement_corrections@1.0",
44 "android.hardware.gnss.visibility_control@1.0",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070045 "android.hardware.gnss-ndk_platform",
46 ],
47 srcs: [
48 "Gnss.cpp",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070049 "GnssHidlHal.cpp",
Yu-Han Yang24753612020-10-27 14:42:14 -070050 "GnssPowerIndication.cpp",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070051 "GnssPsds.cpp",
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070052 "GnssConfiguration.cpp",
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070053 "service.cpp",
54 ],
Yu-Han Yang1e1a6762020-09-30 17:01:53 -070055 static_libs: [
56 "android.hardware.gnss@common-default-lib",
57 ],
Yu-Han Yang274ea0a2020-09-09 17:25:02 -070058}