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
10cc_library {
11    name: "libdatasource",
12
13    srcs: [
14        "DataSourceFactory.cpp",
15        "DataURISource.cpp",
16        "FileSource.cpp",
17        "HTTPBase.cpp",
18        "MediaHTTP.cpp",
19        "NuCachedSource2.cpp",
20    ],
21
22    aidl: {
23        local_include_dirs: ["aidl"],
24        export_aidl_headers: true,
25    },
26
27    header_libs: [
28        "libstagefright_headers",
29        "media_ndk_headers",
30        "libmedia_headers",
31    ],
32
33    export_header_lib_headers: [
34        "libstagefright_headers",
35        "media_ndk_headers",
36    ],
37
38    shared_libs: [
39        "liblog",
40        "libcutils",
41        "libutils",
42        "libstagefright_foundation",
43        "libdl",
44    ],
45
46    static_libs: [
47        "libc_malloc_debug_backtrace",  // for memory heap analysis
48        "libmedia_midiiowrapper",
49    ],
50
51    local_include_dirs: [
52        "include",
53    ],
54
55    export_include_dirs: [
56        "include",
57    ],
58
59    cflags: [
60        "-Werror",
61        "-Wno-error=deprecated-declarations",
62        "-Wall",
63    ],
64
65    sanitize: {
66        misc_undefined: [
67            "unsigned-integer-overflow",
68            "signed-integer-overflow",
69        ],
70        cfi: true,
71    },
72}
73