blob: d74a36b84fa596c088041f08eafce134d75bcb17 [file] [log] [blame]
Tej Singhc03d0092019-11-21 12:47:37 -08001//
2// Copyright (C) 2019 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
17// ==========================================================
18// Native library to register a pull atom callback with statsd
19// ==========================================================
20cc_library_shared {
21 name: "libstatspull",
Tej Singhc03d0092019-11-21 12:47:37 -080022 srcs: [
Tej Singhc03d0092019-11-21 12:47:37 -080023 "stats_pull_atom_callback.cpp",
24 ],
25 cflags: [
26 "-Wall",
27 "-Werror",
28 ],
29 export_include_dirs: ["include"],
30 shared_libs: [
Ruchir Rastogi223dadb2020-01-24 18:21:36 -080031 "libbinder_ndk",
Jeffrey Huangb0a85dc2020-02-12 14:22:01 -080032 "liblog",
Ruchir Rastogi223dadb2020-01-24 18:21:36 -080033 "statsd-aidl-ndk_platform",
Tej Singhc03d0092019-11-21 12:47:37 -080034 ],
35 static_libs: [
Tej Singhc03d0092019-11-21 12:47:37 -080036 "libutils",
Jeffrey Huangb0a85dc2020-02-12 14:22:01 -080037 // TODO(b/149340100): Clean this up when libstatssocket is moved to the apex.
38 "libstatssocket",
39 "libcutils",
Tej Singha8fd39d2020-01-14 13:46:27 -080040 ],
41 // enumerate stable entry points for APEX use
42 stubs: {
43 symbol_file: "libstatspull.map.txt",
44 versions: [
45 "30",
46 ],
47 },
Jeffrey Huangb0a85dc2020-02-12 14:22:01 -080048 apex_available: [
49 "com.android.os.statsd",
50 "test_com.android.os.statsd",
51 ],
Tej Singhc03d0092019-11-21 12:47:37 -080052}