chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 1 | cc_library_shared { |
| 2 | name: "liblayers_proto", |
| 3 | vendor_available: true, |
| 4 | export_include_dirs: ["include"], |
| 5 | |
| 6 | srcs: [ |
| 7 | "LayerProtoParser.cpp", |
| 8 | "layers.proto", |
Adrian Roos | 1e1a128 | 2017-11-01 19:05:31 +0100 | [diff] [blame] | 9 | "layerstrace.proto", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 10 | ], |
| 11 | |
| 12 | shared_libs: [ |
| 13 | "libui", |
| 14 | "libprotobuf-cpp-lite", |
| 15 | "libbase", |
| 16 | ], |
| 17 | |
| 18 | proto: { |
| 19 | export_proto_headers: true, |
| 20 | }, |
| 21 | |
| 22 | cppflags: [ |
| 23 | "-Werror", |
| 24 | "-Wno-unused-parameter", |
| 25 | "-Wno-format", |
| 26 | "-Wno-c++98-compat-pedantic", |
| 27 | "-Wno-float-conversion", |
| 28 | "-Wno-disabled-macro-expansion", |
| 29 | "-Wno-float-equal", |
| 30 | "-Wno-sign-conversion", |
| 31 | "-Wno-padded", |
| 32 | "-Wno-old-style-cast", |
| 33 | "-Wno-undef", |
| 34 | ], |
| 35 | |
Vishnu Nair | fcf2c7b | 2018-02-26 11:37:14 -0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | java_library_static { |
| 39 | name: "layersprotosnano", |
| 40 | host_supported: true, |
| 41 | proto: { |
| 42 | type: "nano", |
| 43 | }, |
| 44 | srcs: ["*.proto"], |
| 45 | no_framework_libs: true, |
| 46 | target: { |
| 47 | android: { |
| 48 | jarjar_rules: "jarjar-rules.txt", |
| 49 | }, |
| 50 | host: { |
| 51 | static_libs: ["libprotobuf-java-nano"], |
| 52 | }, |
| 53 | }, |
| 54 | } |