1// This file is generated by cargo2android.py --run --dependencies --features=clap,runtime,which-rustfmt --host-first-multilib --copy-out.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
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
34genrule {
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}
43
44rust_binary_host {
45    name: "bindgen",
46    crate_name: "bindgen",
47    srcs: [
48        "src/main.rs",
49        ":copy_bindgen_build_out",
50    ],
51    edition: "2018",
52    features: [
53        "clap",
54        "runtime",
55        "which",
56        "which-rustfmt",
57    ],
58    rustlibs: [
59        "libbindgen",
60        "libbitflags",
61        "libcexpr",
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    ],
74    compile_multilib: "first",
75}
76
77rust_library_host {
78    name: "libbindgen",
79    crate_name: "bindgen",
80    srcs: [
81        "src/lib.rs",
82        ":copy_bindgen_build_out",
83    ],
84    edition: "2018",
85    features: [
86        "clap",
87        "runtime",
88        "which",
89        "which-rustfmt",
90    ],
91    rustlibs: [
92        "libbitflags",
93        "libcexpr",
94        "libclang_sys",
95        "libclap",
96        "liblazy_static",
97        "liblazycell",
98        "libpeeking_take_while",
99        "libproc_macro2",
100        "libquote",
101        "libregex",
102        "librustc_hash",
103        "libshlex",
104        "libwhich",
105    ],
106    compile_multilib: "first",
107}
108
109// dependent_library ["feature_list"]
110//   ansi_term-0.11.0
111//   atty-0.2.14
112//   bitflags-1.2.1 "default"
113//   cexpr-0.4.0
114//   cfg-if-1.0.0
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"
116//   clap-2.33.3 "ansi_term,atty,color,default,strsim,suggestions,vec_map"
117//   glob-0.3.0
118//   lazy_static-1.4.0
119//   lazycell-1.3.0
120//   libc-0.2.93 "default,std"
121//   libloading-0.7.0
122//   memchr-2.3.4 "std,use_std"
123//   nom-5.1.2 "alloc,std"
124//   peeking_take_while-0.1.2
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"
129//   rustc-hash-1.1.0 "default,std"
130//   shlex-1.0.0
131//   strsim-0.8.0
132//   textwrap-0.11.0
133//   unicode-width-0.1.8 "default"
134//   unicode-xid-0.2.1 "default"
135//   vec_map-0.8.2
136//   version_check-0.9.3
137//   which-3.1.1
138