blob: 9166c33a06857b4ee07d91c0c792e2ba8b6efdcd [file] [log] [blame]
Joel Galensonf05f2b42021-11-29 14:03:09 -08001// This file is generated by cargo2android.py --config cargo2android.json.
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",
Joel Galensonf05f2b42021-11-29 14:03:09 -080046 // has rustc warnings
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070047 crate_name: "bindgen",
Joel Galensonf05f2b42021-11-29 14:03:09 -080048 cargo_env_compat: true,
David LeGare19fbac62022-03-01 18:49:41 +000049 cargo_pkg_version: "0.59.2",
Chih-Hung Hsieh6bf084b2020-10-25 18:28:54 -070050 srcs: [
51 "src/main.rs",
52 ":copy_bindgen_build_out",
53 ],
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070054 edition: "2018",
55 features: [
56 "clap",
57 "runtime",
58 "which",
59 "which-rustfmt",
60 ],
Matthew Maurer8ad317c2020-07-06 13:11:25 -070061 rustlibs: [
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070062 "libbindgen",
63 "libbitflags",
64 "libcexpr",
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070065 "libclang_sys",
66 "libclap",
67 "liblazy_static",
68 "liblazycell",
69 "libpeeking_take_while",
70 "libproc_macro2",
71 "libquote",
72 "libregex",
73 "librustc_hash",
74 "libshlex",
75 "libwhich",
76 ],
Chih-Hung Hsiehdf4bf952020-07-16 22:13:21 -070077 compile_multilib: "first",
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -070078}
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070079
Matthew Maurer8ad317c2020-07-06 13:11:25 -070080rust_library_host {
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070081 name: "libbindgen",
Joel Galensonf05f2b42021-11-29 14:03:09 -080082 // has rustc warnings
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070083 crate_name: "bindgen",
Joel Galensonf05f2b42021-11-29 14:03:09 -080084 cargo_env_compat: true,
David LeGare19fbac62022-03-01 18:49:41 +000085 cargo_pkg_version: "0.59.2",
Chih-Hung Hsieh6bf084b2020-10-25 18:28:54 -070086 srcs: [
87 "src/lib.rs",
88 ":copy_bindgen_build_out",
89 ],
Haibo Huang43183df2020-05-25 23:17:13 -070090 edition: "2018",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070091 features: [
92 "clap",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070093 "runtime",
94 "which",
95 "which-rustfmt",
96 ],
Matthew Maurer8ad317c2020-07-06 13:11:25 -070097 rustlibs: [
Chih-Hung Hsieh14923202020-04-17 21:14:41 -070098 "libbitflags",
99 "libcexpr",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700100 "libclang_sys",
Chih-Hung Hsieh13ac27f2020-06-09 23:33:27 -0700101 "libclap",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700102 "liblazy_static",
103 "liblazycell",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700104 "libpeeking_take_while",
105 "libproc_macro2",
106 "libquote",
107 "libregex",
108 "librustc_hash",
109 "libshlex",
110 "libwhich",
111 ],
Chih-Hung Hsiehdf4bf952020-07-16 22:13:21 -0700112 compile_multilib: "first",
Chih-Hung Hsieh14923202020-04-17 21:14:41 -0700113}