blob: 391a5629fdee950efd85fe9a1c84d1cbbd14c613 [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",
19 srcs: [
Remi NGUYEN VAN5b546072022-04-22 18:17:00 +090020 "src/**/*.java",
21 "src/**/*.aidl",
Junyu Laiad166b42021-12-07 08:25:31 +000022 ],
Remi NGUYEN VAN5b546072022-04-22 18:17:00 +090023 path: "src",
paulhu66f61ac2021-12-14 23:09:55 +080024 visibility: [
25 "//frameworks/base",
26 "//packages/modules/Connectivity:__subpackages__",
27 ],
paulhue46555d2021-11-23 16:16:13 +080028}
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090029
30cc_library_shared {
31 name: "libframework-connectivity-tiramisu-jni",
32 min_sdk_version: "30",
33 cflags: [
34 "-Wall",
35 "-Werror",
36 "-Wno-unused-parameter",
37 // Don't warn about S API usage even with
38 // min_sdk 30: the library is only loaded
39 // on S+ devices
40 "-Wno-unguarded-availability",
41 "-Wthread-safety",
42 ],
43 srcs: [
44 "jni/android_net_TrafficStats.cpp",
45 "jni/onload.cpp",
46 ],
47 shared_libs: [
Remi NGUYEN VANa24baed2022-02-02 13:22:57 +090048 "libandroid",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090049 "liblog",
Remi NGUYEN VANa24baed2022-02-02 13:22:57 +090050 "libnativehelper",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090051 ],
52 stl: "none",
53 apex_available: [
54 "com.android.tethering",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +090055 ],
56}