1package {
2    default_applicable_licenses: ["bionic_tools_license"],
3}
4
5cc_binary_host {
6    name: "versioner",
7
8    defaults: ["llvm-build-host-tools-defaults"],
9
10    srcs: [
11        "versioner.cpp",
12        "Arch.cpp",
13        "CompilationType.cpp",
14        "DeclarationDatabase.cpp",
15        "Driver.cpp",
16        "Preprocessor.cpp",
17        "SymbolDatabase.cpp",
18        "SymbolFileParser.cpp",
19        "Utils.cpp",
20        "VFS.cpp",
21    ],
22
23    shared_libs: [
24        "libclang-cpp_host",
25        "libbase",
26    ],
27
28    cflags: [
29        "-Wall",
30        "-Wextra",
31        "-Werror",
32        "-Wno-unused-parameter",
33        "-fno-omit-frame-pointer",
34    ],
35
36    target: {
37        host: {
38            cppflags: [
39                "-fno-rtti",
40            ],
41        },
42        windows: {
43            enabled: false,
44        },
45    },
46}
47