| Bob Badour | 8a371ba | 2021-04-20 14:07:25 -0700 | [diff] [blame] | 1 | package { | 
|  | 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 Ganov | 1cfd1fb | 2021-04-30 16:17:45 +0000 | [diff] [blame] | 10 | aidl_interface { | 
|  | 11 | name: "framework-permission-aidl", | 
|  | 12 | unstable: true, | 
|  | 13 | local_include_dir: "aidl", | 
| Svet Ganov | 225ab76 | 2021-05-20 16:10:02 +0000 | [diff] [blame] | 14 | host_supported: true, | 
|  | 15 | vendor_available: true, | 
|  | 16 | double_loadable: true, | 
| Svet Ganov | 1cfd1fb | 2021-04-30 16:17:45 +0000 | [diff] [blame] | 17 | srcs: [ | 
|  | 18 | "aidl/android/content/AttributionSourceState.aidl", | 
|  | 19 | "aidl/android/permission/IPermissionChecker.aidl", | 
|  | 20 | ], | 
|  | 21 | } | 
|  | 22 |  | 
| Svet Ganov | 225ab76 | 2021-05-20 16:10:02 +0000 | [diff] [blame] | 23 | cc_library { | 
| Steven Moreland | a6fddfb | 2021-04-13 00:56:05 +0000 | [diff] [blame] | 24 | name: "libpermission", | 
| Svet Ganov | 225ab76 | 2021-05-20 16:10:02 +0000 | [diff] [blame] | 25 | host_supported: true, | 
|  | 26 | double_loadable: true, | 
| Svet Ganov | bc1e7b1 | 2021-06-02 17:16:23 +0000 | [diff] [blame] | 27 | target: { | 
|  | 28 | darwin: { | 
|  | 29 | enabled: false, | 
|  | 30 | }, | 
|  | 31 | }, | 
| Svet Ganov | 1cfd1fb | 2021-04-30 16:17:45 +0000 | [diff] [blame] | 32 | cflags: [ | 
|  | 33 | "-Wall", | 
|  | 34 | "-Wextra", | 
|  | 35 | "-Werror", | 
|  | 36 | ], | 
| Steven Moreland | 7c849fa | 2021-04-13 01:01:32 +0000 | [diff] [blame] | 37 | srcs: [ | 
|  | 38 | "AppOpsManager.cpp", | 
|  | 39 | "IAppOpsCallback.cpp", | 
|  | 40 | "IAppOpsService.cpp", | 
| Svet Ganov | 1cfd1fb | 2021-04-30 16:17:45 +0000 | [diff] [blame] | 41 | "android/permission/PermissionChecker.cpp", | 
| Steven Moreland | 7c849fa | 2021-04-13 01:01:32 +0000 | [diff] [blame] | 42 | ], | 
|  | 43 | export_include_dirs: ["include"], | 
|  | 44 | shared_libs: [ | 
| Adam Bookatz | e16e891 | 2021-04-26 23:20:46 +0000 | [diff] [blame] | 45 | "libutils", | 
| Svet Ganov | 1cfd1fb | 2021-04-30 16:17:45 +0000 | [diff] [blame] | 46 | "libbinder", | 
|  | 47 | "libcutils", | 
|  | 48 | "liblog", | 
| Steven Moreland | 7c849fa | 2021-04-13 01:01:32 +0000 | [diff] [blame] | 49 | ], | 
| Svet Ganov | 1cfd1fb | 2021-04-30 16:17:45 +0000 | [diff] [blame] | 50 | static_libs: [ | 
|  | 51 | "framework-permission-aidl-cpp", | 
|  | 52 | ], | 
| Svet Ganov | 225ab76 | 2021-05-20 16:10:02 +0000 | [diff] [blame] | 53 | export_static_lib_headers: [ | 
|  | 54 | "framework-permission-aidl-cpp" | 
|  | 55 | ], | 
| Steven Moreland | a6fddfb | 2021-04-13 00:56:05 +0000 | [diff] [blame] | 56 | } |