blob: 7f8da5a6913dec135954a2269a7acf51eb418d06 [file] [log] [blame]
Bob Badour3c538232021-02-12 21:26:48 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_native_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_native_license"],
8}
9
chaviw1d044282017-09-27 12:19:28 -070010cc_library_shared {
11 name: "liblayers_proto",
chaviw1d044282017-09-27 12:19:28 -070012 export_include_dirs: ["include"],
13
14 srcs: [
15 "LayerProtoParser.cpp",
16 "layers.proto",
Adrian Roos1e1a1282017-11-01 19:05:31 +010017 "layerstrace.proto",
chaviw1d044282017-09-27 12:19:28 -070018 ],
19
20 shared_libs: [
Peiyong Lina52f0292018-03-14 17:26:31 -070021 "android.hardware.graphics.common@1.1",
Evan Rosky1f6d6d52018-12-06 10:47:26 -080022 "libgui",
chaviw1d044282017-09-27 12:19:28 -070023 "libui",
24 "libprotobuf-cpp-lite",
25 "libbase",
26 ],
27
28 proto: {
29 export_proto_headers: true,
30 },
31
32 cppflags: [
33 "-Werror",
34 "-Wno-unused-parameter",
35 "-Wno-format",
36 "-Wno-c++98-compat-pedantic",
37 "-Wno-float-conversion",
38 "-Wno-disabled-macro-expansion",
39 "-Wno-float-equal",
40 "-Wno-sign-conversion",
41 "-Wno-padded",
42 "-Wno-old-style-cast",
43 "-Wno-undef",
44 ],
45
Vishnu Nairfcf2c7b2018-02-26 11:37:14 -080046}
47
48java_library_static {
49 name: "layersprotosnano",
50 host_supported: true,
51 proto: {
52 type: "nano",
53 },
54 srcs: ["*.proto"],
Paul Duffind9792892019-06-12 13:46:50 +010055 sdk_version: "core_platform",
Vishnu Nairfcf2c7b2018-02-26 11:37:14 -080056 target: {
57 android: {
58 jarjar_rules: "jarjar-rules.txt",
59 },
60 host: {
61 static_libs: ["libprotobuf-java-nano"],
62 },
63 },
64}