| 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 | |
| 3 | genrule { |
| 4 | name: "copy_protobuf_build_out", |
| 5 | srcs: ["out/*"], |
| 6 | cmd: "cp $(in) $(genDir)", |
| 7 | out: ["version.rs"], |
| 8 | } |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 9 | |
| Chih-Hung Hsieh | 700f4b0 | 2020-07-10 14:15:10 -0700 | [diff] [blame] | 10 | rust_library { |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 11 | name: "libprotobuf", |
| Chih-Hung Hsieh | 700f4b0 | 2020-07-10 14:15:10 -0700 | [diff] [blame] | 12 | host_supported: true, |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 13 | crate_name: "protobuf", |
| Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 14 | srcs: [ |
| 15 | "src/lib.rs", |
| 16 | ":copy_protobuf_build_out", |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 17 | ], |
| Chih-Hung Hsieh | 1b6b647 | 2020-10-25 04:16:21 -0700 | [diff] [blame] | 18 | edition: "2018", |
| 19 | features: ["bytes"], |
| Matthew Maurer | 07b3f15 | 2020-07-06 13:34:06 -0700 | [diff] [blame] | 20 | rustlibs: [ |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 21 | "libbytes", |
| 22 | ], |
| Jiyong Park | 5ed28a5 | 2020-12-07 15:51:20 +0900 | [diff] [blame^] | 23 | apex_available: [ |
| 24 | "//apex_available:platform", |
| 25 | "com.android.virt", |
| 26 | ], |
| Chih-Hung Hsieh | cfc3a23 | 2020-06-10 20:13:05 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | // dependent_library ["feature_list"] |
| Chih-Hung Hsieh | 9f3771f | 2020-09-22 02:16:49 -0700 | [diff] [blame] | 30 | // bytes-0.5.6 "default,std" |