blob: 0a73b23240a59f37567368c003aac0c70181d58c [file] [log] [blame]
Vishnu Nair3242d5f2020-10-06 10:48:32 -07001cc_defaults {
2 name: "liblayers_proto_defaults",
chaviw1d044282017-09-27 12:19:28 -07003 export_include_dirs: ["include"],
4
5 srcs: [
6 "LayerProtoParser.cpp",
7 "layers.proto",
Adrian Roos1e1a1282017-11-01 19:05:31 +01008 "layerstrace.proto",
chaviw1d044282017-09-27 12:19:28 -07009 ],
10
11 shared_libs: [
Peiyong Lina52f0292018-03-14 17:26:31 -070012 "android.hardware.graphics.common@1.1",
Evan Rosky1f6d6d52018-12-06 10:47:26 -080013 "libgui",
chaviw1d044282017-09-27 12:19:28 -070014 "libui",
15 "libprotobuf-cpp-lite",
16 "libbase",
17 ],
18
19 proto: {
20 export_proto_headers: true,
21 },
Vishnu Nair3242d5f2020-10-06 10:48:32 -070022
chaviw1d044282017-09-27 12:19:28 -070023 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 ],
Vishnu Nair3242d5f2020-10-06 10:48:32 -070036}
chaviw1d044282017-09-27 12:19:28 -070037
Vishnu Nair3242d5f2020-10-06 10:48:32 -070038cc_library_shared {
39 name: "liblayers_proto",
40 defaults: [
41 "liblayers_proto_defaults",
42 ],
43}
44
45cc_library_static {
46 name: "liblayers_proto_static",
47 defaults: [
48 "liblayers_proto_defaults",
49 ],
Vishnu Nairfcf2c7b2018-02-26 11:37:14 -080050}
51
52java_library_static {
53 name: "layersprotosnano",
54 host_supported: true,
55 proto: {
56 type: "nano",
57 },
58 srcs: ["*.proto"],
Paul Duffind9792892019-06-12 13:46:50 +010059 sdk_version: "core_platform",
Vishnu Nairfcf2c7b2018-02-26 11:37:14 -080060 target: {
61 android: {
62 jarjar_rules: "jarjar-rules.txt",
63 },
64 host: {
65 static_libs: ["libprotobuf-java-nano"],
66 },
67 },
68}