1cc_library_shared {
2    name: "libstagefright_foundation",
3
4    srcs: [
5        "AAtomizer.cpp",
6        "ABitReader.cpp",
7        "ABuffer.cpp",
8        "ADebug.cpp",
9        "AHandler.cpp",
10        "AHierarchicalStateMachine.cpp",
11        "ALooper.cpp",
12        "ALooperRoster.cpp",
13        "AMessage.cpp",
14        "ANetworkSession.cpp",
15        "AString.cpp",
16        "AStringUtils.cpp",
17        "AWakeLock.cpp",
18        "ColorUtils.cpp",
19        "MediaBuffer.cpp",
20        "MediaBufferGroup.cpp",
21        "MetaData.cpp",
22        "ParsedMessage.cpp",
23        "base64.cpp",
24        "hexdump.cpp",
25    ],
26
27    include_dirs: ["frameworks/av/include/media/stagefright/foundation"],
28
29    export_include_dirs: ["include"],
30
31    shared_libs: [
32        "libbinder",
33        "libutils",
34        "libui",
35        "libcutils",
36        "liblog",
37        "libpowermanager",
38    ],
39
40    export_shared_lib_headers: ["libbinder", "libui"],
41
42    cflags: [
43        "-Wno-multichar",
44        "-Werror",
45        "-Wall",
46    ],
47    clang: true,
48    sanitize: {
49        misc_undefined: [
50            "unsigned-integer-overflow",
51            "signed-integer-overflow",
52        ],
53        cfi: true,
54        diag: {
55          cfi: true,
56        },
57    },
58}
59