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", |
Diwas Sharma | 2401daf | 2023-09-01 00:45:24 +0000 | [diff] [blame] | 16 | "*.proto", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 17 | ], |
| 18 | |
| 19 | shared_libs: [ |
Peiyong Lin | a52f029 | 2018-03-14 17:26:31 -0700 | [diff] [blame] | 20 | "android.hardware.graphics.common@1.1", |
Evan Rosky | 1f6d6d5 | 2018-12-06 10:47:26 -0800 | [diff] [blame] | 21 | "libgui", |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 22 | "libui", |
| 23 | "libprotobuf-cpp-lite", |
| 24 | "libbase", |
| 25 | ], |
| 26 | |
Diwas Sharma | 2401daf | 2023-09-01 00:45:24 +0000 | [diff] [blame] | 27 | proto: { |
| 28 | export_proto_headers: true, |
| 29 | }, |
| 30 | |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 31 | cppflags: [ |
| 32 | "-Werror", |
| 33 | "-Wno-unused-parameter", |
| 34 | "-Wno-format", |
| 35 | "-Wno-c++98-compat-pedantic", |
| 36 | "-Wno-float-conversion", |
| 37 | "-Wno-disabled-macro-expansion", |
| 38 | "-Wno-float-equal", |
| 39 | "-Wno-sign-conversion", |
| 40 | "-Wno-padded", |
| 41 | "-Wno-old-style-cast", |
| 42 | "-Wno-undef", |
| 43 | ], |
Vishnu Nair | 3242d5f | 2020-10-06 10:48:32 -0700 | [diff] [blame] | 44 | } |
Diwas Sharma | 2401daf | 2023-09-01 00:45:24 +0000 | [diff] [blame] | 45 | |
| 46 | java_library_static { |
| 47 | name: "layersprotoslite", |
| 48 | host_supported: true, |
| 49 | proto: { |
| 50 | type: "lite", |
| 51 | include_dirs: ["external/protobuf/src"], |
| 52 | }, |
| 53 | srcs: ["*.proto"], |
| 54 | sdk_version: "core_platform", |
| 55 | target: { |
| 56 | android: { |
| 57 | jarjar_rules: "jarjar-rules.txt", |
| 58 | }, |
| 59 | host: { |
| 60 | static_libs: ["libprotobuf-java-lite"], |
| 61 | }, |
| 62 | }, |
| 63 | } |