Chih-Hung Hsieh | 6bf084b | 2020-10-25 18:28:54 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --run --dependencies --features=clap,runtime,which-rustfmt --host-first-multilib --copy-out. |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | 6bf084b | 2020-10-25 18:28:54 -0700 | [diff] [blame] | 3 | |
Bob Badour | 3c37c62 | 2021-02-12 20:34:45 -0800 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: ["external_rust_crates_bindgen_license"], |
| 6 | } |
| 7 | |
| 8 | // Added automatically by a large-scale-change that took the approach of |
| 9 | // 'apply every license found to every target'. While this makes sure we respect |
| 10 | // every license restriction, it may not be entirely correct. |
| 11 | // |
| 12 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 13 | // |
| 14 | // Please consider splitting the single license below into multiple licenses, |
| 15 | // taking care not to lose any license_kind information, and overriding the |
| 16 | // default license using the 'licenses: [...]' property on targets as needed. |
| 17 | // |
| 18 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 19 | // to attach the license to, and including a comment whether the files may be |
| 20 | // used in the current project. |
| 21 | // See: http://go/android-license-faq |
| 22 | license { |
| 23 | name: "external_rust_crates_bindgen_license", |
| 24 | visibility: [":__subpackages__"], |
| 25 | license_kinds: [ |
| 26 | "SPDX-license-identifier-Apache-2.0", |
| 27 | "SPDX-license-identifier-BSD", |
| 28 | ], |
| 29 | license_text: [ |
| 30 | "LICENSE", |
| 31 | ], |
| 32 | } |
| 33 | |
Chih-Hung Hsieh | 6bf084b | 2020-10-25 18:28:54 -0700 | [diff] [blame] | 34 | genrule { |
| 35 | name: "copy_bindgen_build_out", |
| 36 | srcs: ["out/*"], |
| 37 | cmd: "cp $(in) $(genDir)", |
| 38 | out: [ |
| 39 | "host-target.txt", |
| 40 | "tests.rs", |
| 41 | ], |
| 42 | } |
Chih-Hung Hsieh | 93dc6db | 2020-06-22 21:39:15 -0700 | [diff] [blame] | 43 | |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 44 | rust_binary_host { |
| 45 | name: "bindgen", |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 46 | crate_name: "bindgen", |
Chih-Hung Hsieh | 6bf084b | 2020-10-25 18:28:54 -0700 | [diff] [blame] | 47 | srcs: [ |
| 48 | "src/main.rs", |
| 49 | ":copy_bindgen_build_out", |
| 50 | ], |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 51 | edition: "2018", |
| 52 | features: [ |
| 53 | "clap", |
| 54 | "runtime", |
| 55 | "which", |
| 56 | "which-rustfmt", |
| 57 | ], |
Matthew Maurer | 8ad317c | 2020-07-06 13:11:25 -0700 | [diff] [blame] | 58 | rustlibs: [ |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 59 | "libbindgen", |
| 60 | "libbitflags", |
| 61 | "libcexpr", |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 62 | "libclang_sys", |
| 63 | "libclap", |
| 64 | "liblazy_static", |
| 65 | "liblazycell", |
| 66 | "libpeeking_take_while", |
| 67 | "libproc_macro2", |
| 68 | "libquote", |
| 69 | "libregex", |
| 70 | "librustc_hash", |
| 71 | "libshlex", |
| 72 | "libwhich", |
| 73 | ], |
Chih-Hung Hsieh | df4bf95 | 2020-07-16 22:13:21 -0700 | [diff] [blame] | 74 | compile_multilib: "first", |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 75 | } |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 76 | |
Matthew Maurer | 8ad317c | 2020-07-06 13:11:25 -0700 | [diff] [blame] | 77 | rust_library_host { |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 78 | name: "libbindgen", |
| 79 | crate_name: "bindgen", |
Chih-Hung Hsieh | 6bf084b | 2020-10-25 18:28:54 -0700 | [diff] [blame] | 80 | srcs: [ |
| 81 | "src/lib.rs", |
| 82 | ":copy_bindgen_build_out", |
| 83 | ], |
Haibo Huang | 43183df | 2020-05-25 23:17:13 -0700 | [diff] [blame] | 84 | edition: "2018", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 85 | features: [ |
| 86 | "clap", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 87 | "runtime", |
| 88 | "which", |
| 89 | "which-rustfmt", |
| 90 | ], |
Matthew Maurer | 8ad317c | 2020-07-06 13:11:25 -0700 | [diff] [blame] | 91 | rustlibs: [ |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 92 | "libbitflags", |
| 93 | "libcexpr", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 94 | "libclang_sys", |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 95 | "libclap", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 96 | "liblazy_static", |
| 97 | "liblazycell", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 98 | "libpeeking_take_while", |
| 99 | "libproc_macro2", |
| 100 | "libquote", |
| 101 | "libregex", |
| 102 | "librustc_hash", |
| 103 | "libshlex", |
| 104 | "libwhich", |
| 105 | ], |
Chih-Hung Hsieh | df4bf95 | 2020-07-16 22:13:21 -0700 | [diff] [blame] | 106 | compile_multilib: "first", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | // dependent_library ["feature_list"] |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 110 | // ansi_term-0.11.0 |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 111 | // atty-0.2.14 |
| 112 | // bitflags-1.2.1 "default" |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 113 | // cexpr-0.4.0 |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 114 | // cfg-if-1.0.0 |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 115 | // clang-sys-1.2.0 "clang_3_5,clang_3_6,clang_3_7,clang_3_8,clang_3_9,clang_4_0,clang_5_0,clang_6_0,libloading,runtime" |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 116 | // clap-2.33.3 "ansi_term,atty,color,default,strsim,suggestions,vec_map" |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 117 | // glob-0.3.0 |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 118 | // lazy_static-1.4.0 |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 119 | // lazycell-1.3.0 |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 120 | // libc-0.2.93 "default,std" |
| 121 | // libloading-0.7.0 |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 122 | // memchr-2.3.4 "std,use_std" |
| 123 | // nom-5.1.2 "alloc,std" |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 124 | // peeking_take_while-0.1.2 |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 125 | // proc-macro2-1.0.26 |
| 126 | // quote-1.0.9 |
| 127 | // regex-1.4.5 "std,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment" |
| 128 | // regex-syntax-0.6.23 "unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment" |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 129 | // rustc-hash-1.1.0 "default,std" |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 130 | // shlex-1.0.0 |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 131 | // strsim-0.8.0 |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 132 | // textwrap-0.11.0 |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 133 | // unicode-width-0.1.8 "default" |
| 134 | // unicode-xid-0.2.1 "default" |
| 135 | // vec_map-0.8.2 |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 136 | // version_check-0.9.3 |
Chih-Hung Hsieh | f4e3c6c | 2020-11-01 19:46:55 -0800 | [diff] [blame] | 137 | // which-3.1.1 |