blob: 0eeca5469e9a3d5f3eb6515e3889dab605c5c39e [file] [log] [blame]
Bob Badour8a371ba2021-04-20 14:07:25 -07001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_native_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_native_license"],
8}
9
Svet Ganov1cfd1fb2021-04-30 16:17:45 +000010aidl_interface {
11 name: "framework-permission-aidl",
12 unstable: true,
13 local_include_dir: "aidl",
Svet Ganovb1a9a9a2021-05-20 16:10:02 +000014 host_supported: true,
15 vendor_available: true,
16 double_loadable: true,
Svet Ganov1cfd1fb2021-04-30 16:17:45 +000017 srcs: [
18 "aidl/android/content/AttributionSourceState.aidl",
19 "aidl/android/permission/IPermissionChecker.aidl",
20 ],
21}
22
Svet Ganovb1a9a9a2021-05-20 16:10:02 +000023cc_library {
Steven Morelanda6fddfb2021-04-13 00:56:05 +000024 name: "libpermission",
Svet Ganovb1a9a9a2021-05-20 16:10:02 +000025 host_supported: true,
26 double_loadable: true,
27 target: {
28 darwin: {
29 enabled: false,
30 },
31 },
Svet Ganov1cfd1fb2021-04-30 16:17:45 +000032 cflags: [
33 "-Wall",
34 "-Wextra",
35 "-Werror",
36 ],
Steven Moreland7c849fa2021-04-13 01:01:32 +000037 srcs: [
38 "AppOpsManager.cpp",
39 "IAppOpsCallback.cpp",
40 "IAppOpsService.cpp",
Svet Ganov1cfd1fb2021-04-30 16:17:45 +000041 "android/permission/PermissionChecker.cpp",
Steven Moreland7c849fa2021-04-13 01:01:32 +000042 ],
43 export_include_dirs: ["include"],
44 shared_libs: [
Adam Bookatze16e8912021-04-26 23:20:46 +000045 "libutils",
Svet Ganov1cfd1fb2021-04-30 16:17:45 +000046 "libbinder",
47 "libcutils",
48 "liblog",
Steven Moreland7c849fa2021-04-13 01:01:32 +000049 ],
Svet Ganov1cfd1fb2021-04-30 16:17:45 +000050 static_libs: [
51 "framework-permission-aidl-cpp",
52 ],
Svet Ganovb1a9a9a2021-05-20 16:10:02 +000053 export_static_lib_headers: [
54 "framework-permission-aidl-cpp"
55 ],
Steven Morelanda6fddfb2021-04-13 00:56:05 +000056}