| Jiyong Park | 5ed28a5 | 2020-12-07 15:51:20 +0900 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --run --dependencies --device --features=bytes --copy-out --patch=patches/Android.bp.patch. |
| Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 2 | |
| Bob Badour | e92c3b7 | 2021-02-12 18:01:30 -0800 | [diff] [blame^] | 3 | package { |
| 4 | default_applicable_licenses: ["external_rust_crates_protobuf_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change |
| 8 | // See: http://go/android-license-faq |
| 9 | license { |
| 10 | name: "external_rust_crates_protobuf_license", |
| 11 | visibility: [":__subpackages__"], |
| 12 | license_kinds: [ |
| 13 | "SPDX-license-identifier-MIT", |
| 14 | ], |
| 15 | license_text: [ |
| 16 | "LICENSE.txt", |
| 17 | ], |
| 18 | } |
| 19 | |
| Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 20 | genrule { |
| 21 | name: "copy_protobuf_build_out", |
| 22 | srcs: ["out/*"], |
| 23 | cmd: "cp $(in) $(genDir)", |
| 24 | out: ["version.rs"], |
| 25 | } |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 26 | |
| Chih-Hung Hsieh | 700f4b0 | 2020-07-10 14:15:10 -0700 | [diff] [blame] | 27 | rust_library { |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 28 | name: "libprotobuf", |
| Haibo Huang | 914311b | 2021-01-07 18:06:15 -0800 | [diff] [blame] | 29 | // has rustc warnings |
| Chih-Hung Hsieh | 700f4b0 | 2020-07-10 14:15:10 -0700 | [diff] [blame] | 30 | host_supported: true, |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 31 | crate_name: "protobuf", |
| Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 32 | srcs: [ |
| 33 | "src/lib.rs", |
| 34 | ":copy_protobuf_build_out", |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 35 | ], |
| Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 36 | edition: "2018", |
| 37 | features: ["bytes"], |
| Matthew Maurer | 07b3f15 | 2020-07-06 13:34:06 -0700 | [diff] [blame] | 38 | rustlibs: [ |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 39 | "libbytes", |
| 40 | ], |
| Jiyong Park | 5ed28a5 | 2020-12-07 15:51:20 +0900 | [diff] [blame] | 41 | apex_available: [ |
| 42 | "//apex_available:platform", |
| 43 | "com.android.virt", |
| 44 | ], |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | // dependent_library ["feature_list"] |
| Haibo Huang | 914311b | 2021-01-07 18:06:15 -0800 | [diff] [blame] | 48 | // bytes-1.0.0 "default,std" |