1cc_library_shared {
2    name: "liblayers_proto",
3    export_include_dirs: ["include"],
4
5    srcs: [
6        "LayerProtoParser.cpp",
7        "layers.proto",
8        "layerstrace.proto",
9    ],
10
11    shared_libs: [
12        "android.hardware.graphics.common@1.1",
13        "libgui",
14        "libui",
15        "libprotobuf-cpp-lite",
16        "libbase",
17    ],
18
19    proto: {
20        export_proto_headers: true,
21    },
22
23    cppflags: [
24        "-Werror",
25        "-Wno-unused-parameter",
26        "-Wno-format",
27        "-Wno-c++98-compat-pedantic",
28        "-Wno-float-conversion",
29        "-Wno-disabled-macro-expansion",
30        "-Wno-float-equal",
31        "-Wno-sign-conversion",
32        "-Wno-padded",
33        "-Wno-old-style-cast",
34        "-Wno-undef",
35    ],
36
37}
38
39java_library_static {
40    name: "layersprotosnano",
41    host_supported: true,
42    proto: {
43        type: "nano",
44    },
45    srcs: ["*.proto"],
46    sdk_version: "core_platform",
47    target: {
48        android: {
49            jarjar_rules: "jarjar-rules.txt",
50        },
51        host: {
52            static_libs: ["libprotobuf-java-nano"],
53        },
54    },
55}
56