Henri Chataing | bbd976e | 2022-03-16 16:51:50 +0100 | [diff] [blame] | 1 | |
Bob Badour | b57c42e | 2022-03-31 10:30:46 -0700 | [diff] [blame] | 2 | package { |
| 3 | // See: http://go/android-license-faq |
| 4 | // A large-scale-change added 'default_applicable_licenses' to import |
| 5 | // all of the 'license_kinds' from "system_bt_license" |
| 6 | // to get the below license kinds: |
| 7 | // SPDX-license-identifier-Apache-2.0 |
| 8 | default_applicable_licenses: ["system_bt_license"], |
| 9 | } |
| 10 | |
Martin Geisler | 5883688 | 2022-04-04 10:53:59 +0200 | [diff] [blame] | 11 | rust_defaults { |
| 12 | name: "pdl_defaults", |
| 13 | srcs: ["src/main.rs"], |
Henri Chataing | bbd976e | 2022-03-16 16:51:50 +0100 | [diff] [blame] | 14 | rustlibs: [ |
| 15 | "libpest", |
| 16 | "libserde", |
| 17 | "libserde_json", |
| 18 | "libstructopt", |
| 19 | "libcodespan_reporting", |
| 20 | ], |
| 21 | proc_macros: [ |
| 22 | "libpest_derive", |
| 23 | ], |
| 24 | } |
Martin Geisler | 5883688 | 2022-04-04 10:53:59 +0200 | [diff] [blame] | 25 | |
| 26 | rust_binary_host { |
| 27 | name: "pdl", |
| 28 | defaults: ["pdl_defaults"], |
| 29 | } |
| 30 | |
| 31 | rust_test_host { |
| 32 | name: "pdl_inline_tests", |
| 33 | defaults: ["pdl_defaults"], |
| 34 | test_suites: ["general-tests"], |
| 35 | } |