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 | |
paulhu | 66f61ac | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 17 | filegroup { |
| 18 | name: "framework-connectivity-tiramisu-updatable-sources", |
Anton Hansson | 57f3d69 | 2023-03-15 10:30:10 +0000 | [diff] [blame] | 19 | defaults: ["framework-sources-module-defaults"], |
paulhu | 66f61ac | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 20 | srcs: [ |
Remi NGUYEN VAN | 5b54607 | 2022-04-22 18:17:00 +0900 | [diff] [blame] | 21 | "src/**/*.java", |
| 22 | "src/**/*.aidl", |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 23 | ], |
Remi NGUYEN VAN | 5b54607 | 2022-04-22 18:17:00 +0900 | [diff] [blame] | 24 | path: "src", |
Anton Hansson | 57f3d69 | 2023-03-15 10:30:10 +0000 | [diff] [blame] | 25 | visibility: ["//packages/modules/Connectivity:__subpackages__"], |
paulhu | e46555d | 2021-11-23 16:16:13 +0800 | [diff] [blame] | 26 | } |
Lorenzo Colitti | d2ae739 | 2022-01-29 21:07:33 +0900 | [diff] [blame] | 27 | |
| 28 | cc_library_shared { |
| 29 | name: "libframework-connectivity-tiramisu-jni", |
| 30 | min_sdk_version: "30", |
| 31 | cflags: [ |
| 32 | "-Wall", |
| 33 | "-Werror", |
| 34 | "-Wno-unused-parameter", |
| 35 | // Don't warn about S API usage even with |
| 36 | // min_sdk 30: the library is only loaded |
| 37 | // on S+ devices |
| 38 | "-Wno-unguarded-availability", |
| 39 | "-Wthread-safety", |
| 40 | ], |
| 41 | srcs: [ |
| 42 | "jni/android_net_TrafficStats.cpp", |
| 43 | "jni/onload.cpp", |
| 44 | ], |
| 45 | shared_libs: [ |
Remi NGUYEN VAN | a24baed | 2022-02-02 13:22:57 +0900 | [diff] [blame] | 46 | "libandroid", |
Lorenzo Colitti | d2ae739 | 2022-01-29 21:07:33 +0900 | [diff] [blame] | 47 | "liblog", |
Remi NGUYEN VAN | a24baed | 2022-02-02 13:22:57 +0900 | [diff] [blame] | 48 | "libnativehelper", |
Lorenzo Colitti | d2ae739 | 2022-01-29 21:07:33 +0900 | [diff] [blame] | 49 | ], |
| 50 | stl: "none", |
| 51 | apex_available: [ |
| 52 | "com.android.tethering", |
Lorenzo Colitti | d2ae739 | 2022-01-29 21:07:33 +0900 | [diff] [blame] | 53 | ], |
| 54 | } |