blob: b8eb1f637370d30a7500da914a6a7fe377b81275 [file] [log] [blame]
paulhu73a82032021-11-18 15:29:03 +08001//
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
paulhu66f61ac2021-12-14 23:09:55 +080017filegroup {
18 name: "framework-connectivity-tiramisu-updatable-sources",
Anton Hansson57f3d692023-03-15 10:30:10 +000019 defaults: ["framework-sources-module-defaults"],
paulhu66f61ac2021-12-14 23:09:55 +080020 srcs: [
Remi NGUYEN VAN5b546072022-04-22 18:17:00 +090021 "src/**/*.java",
22 "src/**/*.aidl",
Junyu Laiad166b42021-12-07 08:25:31 +000023 ],
Remi NGUYEN VAN5b546072022-04-22 18:17:00 +090024 path: "src",
Anton Hansson57f3d692023-03-15 10:30:10 +000025 visibility: ["//packages/modules/Connectivity:__subpackages__"],
paulhue46555d2021-11-23 16:16:13 +080026}
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090027
28cc_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 VANa24baed2022-02-02 13:22:57 +090046 "libandroid",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090047 "liblog",
Remi NGUYEN VANa24baed2022-02-02 13:22:57 +090048 "libnativehelper",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090049 ],
50 stl: "none",
51 apex_available: [
52 "com.android.tethering",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090053 ],
54}