• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// build time C++ available list of all HIDL interfaces in the tree
2cc_library {
3    name: "libhidlmetadata",
4    host_supported: true,
5    srcs: [":hidl_metadata_in_cpp"],
6    export_include_dirs: ["include"],
7
8    cflags: ["-O0"],
9}
10
11cc_library_headers {
12    name: "libhidlmetadata_headers",
13    recovery_available: true,
14    host_supported: true,
15    export_include_dirs: ["include"],
16}
17
18// private impl below
19
20cc_binary {
21    name: "hidl_metadata_parser",
22    host_supported: true,
23    srcs: ["parser.cpp"],
24    shared_libs: ["libjsoncpp"],
25    visibility: [":__subpackages__"],
26}
27
28cc_genrule {
29    name: "hidl_metadata_in_cpp",
30    host_supported: true,
31    cmd: "$(location hidl_metadata_parser) $(in) > $(genDir)/metadata.cpp",
32    srcs: [
33        ":hidl_metadata_json",
34    ],
35    tools: ["hidl_metadata_parser"],
36    visibility: [":__subpackages__"],
37    out: ["metadata.cpp"],
38}
39