summaryrefslogtreecommitdiff
path: root/libs/permission/Android.bp
blob: 0eeca5469e9a3d5f3eb6515e3889dab605c5c39e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_native_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_native_license"],
}

aidl_interface {
    name: "framework-permission-aidl",
    unstable: true,
    local_include_dir: "aidl",
    host_supported: true,
    vendor_available: true,
    double_loadable: true,
    srcs: [
        "aidl/android/content/AttributionSourceState.aidl",
        "aidl/android/permission/IPermissionChecker.aidl",
    ],
}

cc_library {
    name: "libpermission",
    host_supported: true,
    double_loadable: true,
    target: {
        darwin: {
            enabled: false,
        },
    },
    cflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
    srcs: [
        "AppOpsManager.cpp",
        "IAppOpsCallback.cpp",
        "IAppOpsService.cpp",
        "android/permission/PermissionChecker.cpp",
    ],
    export_include_dirs: ["include"],
    shared_libs: [
        "libutils",
        "libbinder",
        "libcutils",
        "liblog",
    ],
    static_libs: [
        "framework-permission-aidl-cpp",
    ],
    export_static_lib_headers: [
        "framework-permission-aidl-cpp"
    ],
}