blob: 305d025526ed3641665eb66feffd0d48a2b14b32 [file] [log] [blame]
Chih-Hung Hsieh6bf084b2020-10-25 18:28:54 -07001// This file is generated by cargo2android.py --run --dependencies --features=clap,runtime,which-rustfmt --host-first-multilib --copy-out.
Joel Galenson64466032021-04-16 11:01:36 -07002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh6bf084b2020-10-25 18:28:54 -07003
Bob Badour3c37c622021-02-12 20:34:45 -08004package {
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
22license {
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 Hsieh6bf084b2020-10-25 18:28:54 -070034genrule {
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 Hsieh93dc6db2020-06-22 21:39:15 -070043
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070044rust_binary_host {
45 name: "bindgen",
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070046 crate_name: "bindgen",
Chih-Hung Hsieh6bf084b2020-10-25 18:28:54 -070047 srcs: [
48 "src/main.rs",
49 ":copy_bindgen_build_out",
50 ],
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070051 edition: "2018",
52 features: [
53 "clap",
54 "runtime",
55 "which",
56 "which-rustfmt",
57 ],
Matthew Maurer8ad317c2020-07-06 13:11:25 -070058 rustlibs: [
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070059 "libbindgen",
60 "libbitflags",
61 "libcexpr",
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070062 "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 Hsiehdf4bf952020-07-16 22:13:21 -070074 compile_multilib: "first",
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070075}
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070076
Matthew Maurer8ad317c2020-07-06 13:11:25 -070077rust_library_host {
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070078 name: "libbindgen",
79 crate_name: "bindgen",
Chih-Hung Hsieh6bf084b2020-10-25 18:28:54 -070080 srcs: [
81 "src/lib.rs",
82 ":copy_bindgen_build_out",
83 ],
Haibo Huang43183df2020-05-25 23:17:13 -070084 edition: "2018",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070085 features: [
86 "clap",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070087 "runtime",
88 "which",
89 "which-rustfmt",
90 ],
Matthew Maurer8ad317c2020-07-06 13:11:25 -070091 rustlibs: [
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070092 "libbitflags",
93 "libcexpr",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070094 "libclang_sys",
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070095 "libclap",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070096 "liblazy_static",
97 "liblazycell",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070098 "libpeeking_take_while",
99 "libproc_macro2",
100 "libquote",
101 "libregex",
102 "librustc_hash",
103 "libshlex",
104 "libwhich",
105 ],
Chih-Hung Hsiehdf4bf952020-07-16 22:13:21 -0700106 compile_multilib: "first",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700107}
108
109// dependent_library ["feature_list"]
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700110// ansi_term-0.11.0
Chih-Hung Hsiehf4e3c6c2020-11-01 19:46:55 -0800111// atty-0.2.14
112// bitflags-1.2.1 "default"
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700113// cexpr-0.4.0
Chih-Hung Hsiehf4e3c6c2020-11-01 19:46:55 -0800114// cfg-if-1.0.0
Joel Galenson64466032021-04-16 11:01:36 -0700115// 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 Hsiehf4e3c6c2020-11-01 19:46:55 -0800116// clap-2.33.3 "ansi_term,atty,color,default,strsim,suggestions,vec_map"
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700117// glob-0.3.0
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700118// lazy_static-1.4.0
Chih-Hung Hsiehf4e3c6c2020-11-01 19:46:55 -0800119// lazycell-1.3.0
Joel Galenson64466032021-04-16 11:01:36 -0700120// libc-0.2.93 "default,std"
121// libloading-0.7.0
Chih-Hung Hsiehf4e3c6c2020-11-01 19:46:55 -0800122// memchr-2.3.4 "std,use_std"
123// nom-5.1.2 "alloc,std"
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700124// peeking_take_while-0.1.2
Joel Galenson64466032021-04-16 11:01:36 -0700125// 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 Hsiehf4e3c6c2020-11-01 19:46:55 -0800129// rustc-hash-1.1.0 "default,std"
Joel Galenson64466032021-04-16 11:01:36 -0700130// shlex-1.0.0
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700131// strsim-0.8.0
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700132// textwrap-0.11.0
Chih-Hung Hsiehf4e3c6c2020-11-01 19:46:55 -0800133// unicode-width-0.1.8 "default"
134// unicode-xid-0.2.1 "default"
135// vec_map-0.8.2
Joel Galenson64466032021-04-16 11:01:36 -0700136// version_check-0.9.3
Chih-Hung Hsiehf4e3c6c2020-11-01 19:46:55 -0800137// which-3.1.1