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        "libcgrouprc#29",
48    ],
49
50    header_libs: [
51        "libaudioclient_headers",
52        "libbase_headers",
53        "libstagefright_headers",
54        "libmedia_datasource_headers",
55    ],
56
57    static_libs: [
58        "android.hardware.cas@1.0",
59        "android.hardware.cas.native@1.0",
60        "android.hidl.allocator@1.0",
61        "android.hidl.memory@1.0",
62        "android.hidl.token@1.0",
63        "android.hidl.token@1.0-utils",
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        "libutils",
75    ],
76
77    apex_available: [
78        "com.android.media",
79        "test_com.android.media",
80    ],
81
82    static: {
83        apex_available: [
84            // Needed for unit tests
85            "//apex_available:platform",
86        ],
87    },
88}
89