1minijail_common_cflags = [
2    "-Wall",
3    "-Werror",
4]
5
6cc_defaults {
7    name: "libavservices_minijail_defaults",
8    srcs: ["minijail.cpp"],
9    cflags: minijail_common_cflags,
10    shared_libs: [
11        "libbase",
12        "libminijail",
13    ],
14}
15
16// Small library for media.extractor and media.codec sandboxing.
17cc_library_shared {
18    name: "libavservices_minijail",
19    defaults: ["libavservices_minijail_defaults"],
20    vendor_available: true,
21    min_sdk_version: "29",
22    export_include_dirs: ["."],
23}
24
25// By adding "vendor_available: true" to "libavservices_minijail", we don't
26// need to have "libavservices_minijail_vendor" any longer.
27// "libavservices_minijail_vendor" will be removed, once we replace it with
28// "libavservices_minijail" in all vendor modules. (b/146313710)
29cc_library_shared {
30    name: "libavservices_minijail_vendor",
31    vendor: true,
32    defaults: ["libavservices_minijail_defaults"],
33    export_include_dirs: ["."],
34}
35
36// Unit tests.
37cc_test {
38    name: "libavservices_minijail_unittest",
39    defaults: ["libavservices_minijail_defaults"],
40    srcs: [
41        "av_services_minijail_unittest.cpp",
42    ],
43}
44