Tej Singh | c03d009 | 2019-11-21 12:47:37 -0800 | [diff] [blame] | 1 | // |
| 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 | // ========================================================== |
| 20 | cc_library_shared { |
| 21 | name: "libstatspull", |
Ruchir Rastogi | 9ecc986 | 2019-12-06 12:42:27 -0800 | [diff] [blame] | 22 | aidl: { |
| 23 | include_dirs: ["frameworks/base/core/java"], |
| 24 | }, |
Tej Singh | c03d009 | 2019-11-21 12:47:37 -0800 | [diff] [blame] | 25 | srcs: [ |
| 26 | ":statsd_aidl", |
| 27 | "stats_pull_atom_callback.cpp", |
| 28 | ], |
| 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Werror", |
| 32 | ], |
| 33 | export_include_dirs: ["include"], |
| 34 | shared_libs: [ |
Tej Singh | a8fd39d | 2020-01-14 13:46:27 -0800 | [diff] [blame^] | 35 | //TODO: use libbinder_ndk. Remove libservices. |
Tej Singh | c03d009 | 2019-11-21 12:47:37 -0800 | [diff] [blame] | 36 | "libbinder", |
| 37 | "libstatssocket", |
| 38 | "libservices", |
| 39 | ], |
| 40 | static_libs: [ |
| 41 | "liblog", |
| 42 | "libutils", |
Tej Singh | a8fd39d | 2020-01-14 13:46:27 -0800 | [diff] [blame^] | 43 | ], |
| 44 | // enumerate stable entry points for APEX use |
| 45 | stubs: { |
| 46 | symbol_file: "libstatspull.map.txt", |
| 47 | versions: [ |
| 48 | "30", |
| 49 | ], |
| 50 | }, |
Tej Singh | c03d009 | 2019-11-21 12:47:37 -0800 | [diff] [blame] | 51 | } |