xref: /aosp_15_r20/frameworks/av/media/module/extractors/mpeg2/Android.bp (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1package {
2    default_applicable_licenses: [
3        "frameworks_av_media_extractors_mpeg2_license",
4    ],
5}
6
7// Added automatically by a large-scale-change
8// See: http://go/android-license-faq
9license {
10    name: "frameworks_av_media_extractors_mpeg2_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-Apache-2.0",
14    ],
15    license_text: [
16        "NOTICE",
17    ],
18}
19
20cc_library {
21    name: "libmpeg2extractor",
22
23    host_supported: true,
24    target: {
25        darwin: {
26            enabled: false,
27        },
28        android: {
29            shared_libs: ["libvndksupport#29"],
30        },
31    },
32
33    defaults: ["extractor-defaults"],
34
35    srcs: [
36        "ExtractorBundle.cpp",
37        "MPEG2PSExtractor.cpp",
38        "MPEG2TSExtractor.cpp",
39    ],
40
41    export_include_dirs: [
42        "include",
43    ],
44
45    shared_libs: [
46        "libbase",
47        "libutils",
48    ],
49
50    header_libs: [
51        "libaudioclient_headers",
52        "libbase_headers",
53        "libstagefright_headers",
54        "libmedia_datasource_headers",
55    ],
56
57    static_libs: [
58        "[email protected]",
59        "[email protected]",
60        "[email protected]",
61        "[email protected]",
62        "[email protected]",
63        "[email protected]",
64        "libcutils",
65        "libhidlbase",
66        "libhidlmemory",
67        "libjsoncpp",
68        "libmedia_helper",
69        "libprocessgroup",
70        "libstagefright_esds",
71        "libstagefright_foundation_without_imemory",
72        "libstagefright_mpeg2extractor",
73        "libstagefright_mpeg2support_nocrypto",
74    ],
75
76    apex_available: [
77        "com.android.media",
78        "test_com.android.media",
79    ],
80
81    static: {
82        apex_available: [
83            // Needed for unit tests
84            "//apex_available:platform",
85        ],
86    },
87}
88