xref: /aosp_15_r20/frameworks/av/drm/libmediadrmrkp/Android.bp (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1cc_library {
2    name: "libmediadrmrkp",
3    vendor_available: true,
4    srcs: [
5        "src/**/*.cpp",
6    ],
7    export_include_dirs: [
8        "include",
9    ],
10    shared_libs: [
11        "libbinder_ndk",
12        "libcrypto",
13        "liblog",
14    ],
15    static_libs: [
16        "android.hardware.common-V2-ndk",
17        "android.hardware.drm.common-V1-ndk",
18        "android.hardware.drm-V1-ndk",
19        "android.hardware.security.rkp-V3-ndk",
20        "libbase",
21        "libcppbor",
22    ],
23    defaults: [
24        "keymint_use_latest_hal_aidl_ndk_shared",
25    ],
26    cflags: [
27        "-Wall",
28        "-Werror",
29    ],
30}
31
32cc_binary {
33    name: "test_libmediadrmrkp",
34    srcs: [
35        "test/*",
36    ],
37    shared_libs: [
38        "libbinder_ndk",
39        "liblog",
40    ],
41    static_libs: [
42        "android.hardware.common-V2-ndk",
43        "android.hardware.drm.common-V1-ndk",
44        "android.hardware.drm-V1-ndk",
45        "android.hardware.security.rkp-V3-ndk",
46        "libbase",
47        "libcppbor",
48        "libmediadrmrkp",
49    ],
50    vendor: true,
51    cflags: [
52        "-Wall",
53        "-Werror",
54    ],
55}
56