summaryrefslogtreecommitdiffstats
blob: 0a1593b265fe9291ffa68959d2f271c4e5ed09c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cc_defaults {
    name: "propertyinfoserializer_defaults",
    host_supported: true,
    cpp_std: "experimental",
    target: {
        linux: {
            sanitize: {
                misc_undefined: ["signed-integer-overflow"],
            },
        },
    },
    cppflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
    static_libs: [
        "libpropertyinfoparser",
        "libbase",
    ],
}

cc_library_static {
    name: "libpropertyinfoserializer",
    defaults: ["propertyinfoserializer_defaults"],
    srcs: [
        "property_info_file.cpp",
        "property_info_serializer.cpp",
        "trie_builder.cpp",
        "trie_serializer.cpp",
    ],

    export_include_dirs: ["include"],
}

cc_test {
    name: "propertyinfoserializer_tests",
    defaults: ["propertyinfoserializer_defaults"],
    srcs: [
        "trie_builder_test.cpp",
        "property_info_serializer_test.cpp",
    ],
    static_libs: ["libpropertyinfoserializer"],
}