• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_team: "trendy_team_media_framework_audio",
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "frameworks_av_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["frameworks_av_license"],
9}
10
11aidl_interface {
12    name: "shared-file-region-aidl",
13    unstable: true,
14    host_supported: true,
15    vendor_available: true,
16    double_loadable: true,
17    local_include_dir: "aidl",
18    srcs: [
19        "aidl/android/media/SharedFileRegion.aidl",
20    ],
21    backend: {
22        ndk: {
23            min_sdk_version: "29",
24            apex_available: [
25                "//apex_available:platform",
26                "com.android.media",
27            ],
28        },
29    },
30}
31
32cc_library {
33    name: "libshmemcompat",
34    export_include_dirs: ["include"],
35    srcs: ["ShmemCompat.cpp"],
36    host_supported: true,
37    vendor_available: true,
38    double_loadable: true,
39    shared_libs: [
40        "libbinder",
41        "libshmemutil",
42        "libutils",
43        "shared-file-region-aidl-cpp",
44    ],
45    export_shared_lib_headers: [
46        "libbinder",
47        "libutils",
48        "shared-file-region-aidl-cpp",
49    ],
50    target: {
51        darwin: {
52            enabled: false,
53        },
54    },
55}
56
57cc_library {
58    name: "libshmemutil",
59    export_include_dirs: ["include"],
60    srcs: ["ShmemUtil.cpp"],
61    host_supported: true,
62    vendor_available: true,
63    double_loadable: true,
64    shared_libs: [
65        "shared-file-region-aidl-cpp",
66    ],
67    export_shared_lib_headers: [
68        "shared-file-region-aidl-cpp",
69    ],
70    target: {
71        darwin: {
72            enabled: false,
73        },
74    },
75}
76
77cc_test {
78    name: "shmemTest",
79    srcs: ["ShmemTest.cpp"],
80    shared_libs: [
81        "libbinder",
82        "libcutils",
83        "libshmemcompat",
84        "libshmemutil",
85        "libutils",
86        "shared-file-region-aidl-cpp",
87    ],
88    test_suites: ["device-tests"],
89}
90