Joel Galenson | f05f2b4 | 2021-11-29 14:03:09 -0800 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
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", |
Joel Galenson | f05f2b4 | 2021-11-29 14:03:09 -0800 | [diff] [blame] | 46 | // has rustc warnings |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 47 | crate_name: "bindgen", |
Joel Galenson | f05f2b4 | 2021-11-29 14:03:09 -0800 | [diff] [blame] | 48 | cargo_env_compat: true, |
David LeGare | 19fbac6 | 2022-03-01 18:49:41 +0000 | [diff] [blame] | 49 | cargo_pkg_version: "0.59.2", |
Chih-Hung Hsieh | 6bf084b | 2020-10-25 18:28:54 -0700 | [diff] [blame] | 50 | srcs: [ |
| 51 | "src/main.rs", |
| 52 | ":copy_bindgen_build_out", |
| 53 | ], |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 54 | edition: "2018", |
| 55 | features: [ |
| 56 | "clap", |
| 57 | "runtime", |
| 58 | "which", |
| 59 | "which-rustfmt", |
| 60 | ], |
Matthew Maurer | 8ad317c | 2020-07-06 13:11:25 -0700 | [diff] [blame] | 61 | rustlibs: [ |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 62 | "libbindgen", |
| 63 | "libbitflags", |
| 64 | "libcexpr", |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 65 | "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 Hsieh | df4bf95 | 2020-07-16 22:13:21 -0700 | [diff] [blame] | 77 | compile_multilib: "first", |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 78 | } |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 79 | |
Matthew Maurer | 8ad317c | 2020-07-06 13:11:25 -0700 | [diff] [blame] | 80 | rust_library_host { |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 81 | name: "libbindgen", |
Joel Galenson | f05f2b4 | 2021-11-29 14:03:09 -0800 | [diff] [blame] | 82 | // has rustc warnings |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 83 | crate_name: "bindgen", |
Joel Galenson | f05f2b4 | 2021-11-29 14:03:09 -0800 | [diff] [blame] | 84 | cargo_env_compat: true, |
David LeGare | 19fbac6 | 2022-03-01 18:49:41 +0000 | [diff] [blame] | 85 | cargo_pkg_version: "0.59.2", |
Chih-Hung Hsieh | 6bf084b | 2020-10-25 18:28:54 -0700 | [diff] [blame] | 86 | srcs: [ |
| 87 | "src/lib.rs", |
| 88 | ":copy_bindgen_build_out", |
| 89 | ], |
Haibo Huang | 43183df | 2020-05-25 23:17:13 -0700 | [diff] [blame] | 90 | edition: "2018", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 91 | features: [ |
| 92 | "clap", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 93 | "runtime", |
| 94 | "which", |
| 95 | "which-rustfmt", |
| 96 | ], |
Matthew Maurer | 8ad317c | 2020-07-06 13:11:25 -0700 | [diff] [blame] | 97 | rustlibs: [ |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 98 | "libbitflags", |
| 99 | "libcexpr", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 100 | "libclang_sys", |
Chih-Hung Hsieh | 13ac27f | 2020-06-09 23:33:27 -0700 | [diff] [blame] | 101 | "libclap", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 102 | "liblazy_static", |
| 103 | "liblazycell", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 104 | "libpeeking_take_while", |
| 105 | "libproc_macro2", |
| 106 | "libquote", |
| 107 | "libregex", |
| 108 | "librustc_hash", |
| 109 | "libshlex", |
| 110 | "libwhich", |
| 111 | ], |
Chih-Hung Hsieh | df4bf95 | 2020-07-16 22:13:21 -0700 | [diff] [blame] | 112 | compile_multilib: "first", |
Chih-Hung Hsieh | 1492320 | 2020-04-17 21:14:41 -0700 | [diff] [blame] | 113 | } |