Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame^] | 1 | cc_defaults { |
| 2 | name: "liblayers_proto_defaults", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 3 | export_include_dirs: ["include"], |
| 4 | |
| 5 | srcs: [ |
| 6 | "LayerProtoParser.cpp", |
| 7 | "layers.proto", |
Adrian Roos | 1e1a128 | 2017-11-01 19:05:31 +0100 | [diff] [blame] | 8 | "layerstrace.proto", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 9 | ], |
| 10 | |
| 11 | shared_libs: [ |
Peiyong Lin | a52f029 | 2018-03-14 17:26:31 -0700 | [diff] [blame] | 12 | "android.hardware.graphics.common@1.1", |
Evan Rosky | 1f6d6d5 | 2018-12-06 10:47:26 -0800 | [diff] [blame] | 13 | "libgui", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 14 | "libui", |
| 15 | "libprotobuf-cpp-lite", |
| 16 | "libbase", |
| 17 | ], |
| 18 | |
| 19 | proto: { |
| 20 | export_proto_headers: true, |
| 21 | }, |
Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame^] | 22 | |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 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 | ], |
Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame^] | 36 | } |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 37 | |
Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame^] | 38 | cc_library_shared { |
| 39 | name: "liblayers_proto", |
| 40 | defaults: [ |
| 41 | "liblayers_proto_defaults", |
| 42 | ], |
| 43 | } |
| 44 | |
| 45 | cc_library_static { |
| 46 | name: "liblayers_proto_static", |
| 47 | defaults: [ |
| 48 | "liblayers_proto_defaults", |
| 49 | ], |
Vishnu Nair | fcf2c7b | 2018-02-26 11:37:14 -0800 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | java_library_static { |
| 53 | name: "layersprotosnano", |
| 54 | host_supported: true, |
| 55 | proto: { |
| 56 | type: "nano", |
| 57 | }, |
| 58 | srcs: ["*.proto"], |
Paul Duffin | d979289 | 2019-06-12 13:46:50 +0100 | [diff] [blame] | 59 | sdk_version: "core_platform", |
Vishnu Nair | fcf2c7b | 2018-02-26 11:37:14 -0800 | [diff] [blame] | 60 | target: { |
| 61 | android: { |
| 62 | jarjar_rules: "jarjar-rules.txt", |
| 63 | }, |
| 64 | host: { |
| 65 | static_libs: ["libprotobuf-java-nano"], |
| 66 | }, |
| 67 | }, |
| 68 | } |