1package {
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_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10minijail_common_cflags = [
11    "-Wall",
12    "-Werror",
13]
14
15cc_defaults {
16    name: "libavservices_minijail_defaults",
17    srcs: ["minijail.cpp"],
18    cflags: minijail_common_cflags,
19    shared_libs: [
20        "libbase",
21        "libminijail",
22    ],
23}
24
25// Small library for media.extractor and media.codec sandboxing.
26cc_library_shared {
27    name: "libavservices_minijail",
28    defaults: ["libavservices_minijail_defaults"],
29    vendor_available: true,
30    min_sdk_version: "29",
31    apex_available: [
32        "//apex_available:platform",
33        "com.android.media.swcodec",
34    ],
35
36    export_include_dirs: ["."],
37}
38
39// Unit tests.
40cc_test {
41    name: "libavservices_minijail_unittest",
42    defaults: ["libavservices_minijail_defaults"],
43    srcs: [
44        "av_services_minijail_unittest.cpp",
45    ],
46    test_suites: ["device-tests"],
47}
48