Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame^] | 1 | package { |
| 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 | |
Vishnu Nair | df6a4f6 | 2020-11-11 20:25:34 -0800 | [diff] [blame] | 10 | cc_library { |
| 11 | name: "liblayers_proto", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 12 | export_include_dirs: ["include"], |
| 13 | |
| 14 | srcs: [ |
| 15 | "LayerProtoParser.cpp", |
| 16 | "layers.proto", |
Adrian Roos | 1e1a128 | 2017-11-01 19:05:31 +0100 | [diff] [blame] | 17 | "layerstrace.proto", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 18 | ], |
| 19 | |
| 20 | shared_libs: [ |
Peiyong Lin | a52f029 | 2018-03-14 17:26:31 -0700 | [diff] [blame] | 21 | "android.hardware.graphics.common@1.1", |
Evan Rosky | 1f6d6d5 | 2018-12-06 10:47:26 -0800 | [diff] [blame] | 22 | "libgui", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 23 | "libui", |
| 24 | "libprotobuf-cpp-lite", |
| 25 | "libbase", |
| 26 | ], |
| 27 | |
| 28 | proto: { |
| 29 | export_proto_headers: true, |
| 30 | }, |
Vishnu Nair | df6a4f6 | 2020-11-11 20:25:34 -0800 | [diff] [blame] | 31 | |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 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 | ], |
Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame] | 45 | } |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 46 | |
Vishnu Nair | fcf2c7b | 2018-02-26 11:37:14 -0800 | [diff] [blame] | 47 | java_library_static { |
| 48 | name: "layersprotosnano", |
| 49 | host_supported: true, |
| 50 | proto: { |
| 51 | type: "nano", |
| 52 | }, |
| 53 | srcs: ["*.proto"], |
Paul Duffin | d979289 | 2019-06-12 13:46:50 +0100 | [diff] [blame] | 54 | sdk_version: "core_platform", |
Vishnu Nair | fcf2c7b | 2018-02-26 11:37:14 -0800 | [diff] [blame] | 55 | target: { |
| 56 | android: { |
| 57 | jarjar_rules: "jarjar-rules.txt", |
| 58 | }, |
| 59 | host: { |
| 60 | static_libs: ["libprotobuf-java-nano"], |
| 61 | }, |
| 62 | }, |
| 63 | } |