paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2021 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 | |
Remi NGUYEN VAN | a24baed | 2022-02-02 13:22:57 +0900 | [diff] [blame] | 17 | // For test code only. |
| 18 | filegroup { |
| 19 | name: "lib_networkStatsFactory_native", |
| 20 | srcs: [ |
| 21 | "jni/com_android_server_net_NetworkStatsFactory.cpp", |
| 22 | ], |
| 23 | path: "jni", |
| 24 | visibility: [ |
| 25 | "//packages/modules/Connectivity:__subpackages__", |
| 26 | ], |
| 27 | } |
| 28 | |
| 29 | filegroup { |
| 30 | name: "services.connectivity-netstats-jni-sources", |
| 31 | srcs: [ |
| 32 | "jni/com_android_server_net_NetworkStatsFactory.cpp", |
| 33 | "jni/com_android_server_net_NetworkStatsService.cpp", |
| 34 | ], |
| 35 | path: "jni", |
| 36 | visibility: [ |
| 37 | "//packages/modules/Connectivity:__subpackages__", |
| 38 | ], |
| 39 | } |
| 40 | |
markchien | e1825f1 | 2022-01-18 18:26:28 +0800 | [diff] [blame] | 41 | cc_library_shared { |
| 42 | name: "libcom_android_net_module_util_jni", |
| 43 | min_sdk_version: "30", |
| 44 | cflags: [ |
| 45 | "-Wall", |
| 46 | "-Werror", |
| 47 | "-Wno-unused-parameter", |
| 48 | "-Wthread-safety", |
| 49 | ], |
| 50 | srcs: [ |
| 51 | "jni/onload.cpp", |
| 52 | ], |
| 53 | stl: "libc++_static", |
| 54 | static_libs: [ |
| 55 | "libnet_utils_device_common_bpfjni", |
| 56 | ], |
| 57 | shared_libs: [ |
| 58 | "liblog", |
| 59 | "libnativehelper", |
| 60 | ], |
| 61 | apex_available: [ |
| 62 | "//apex_available:platform", |
| 63 | ], |
| 64 | } |