Bob Badour | 92ecf7c | 2021-02-12 18:05:29 -0800 | [diff] [blame] | 1 | package { |
Etienne Ruffieux | 917abc3 | 2022-02-28 14:07:17 +0000 | [diff] [blame] | 2 | default_visibility: [":__subpackages__"], |
Bob Badour | 92ecf7c | 2021-02-12 18:05:29 -0800 | [diff] [blame] | 3 | default_applicable_licenses: ["system_bt_license"], |
| 4 | } |
| 5 | |
| 6 | // Added automatically by a large-scale-change that took the approach of |
| 7 | // 'apply every license found to every target'. While this makes sure we respect |
| 8 | // every license restriction, it may not be entirely correct. |
| 9 | // |
| 10 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 11 | // |
| 12 | // Please consider splitting the single license below into multiple licenses, |
| 13 | // taking care not to lose any license_kind information, and overriding the |
| 14 | // default license using the 'licenses: [...]' property on targets as needed. |
| 15 | // |
| 16 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 17 | // to attach the license to, and including a comment whether the files may be |
| 18 | // used in the current project. |
| 19 | // See: http://go/android-license-faq |
| 20 | license { |
| 21 | name: "system_bt_license", |
| 22 | visibility: [":__subpackages__"], |
| 23 | license_kinds: [ |
| 24 | "SPDX-license-identifier-Apache-2.0", |
| 25 | "SPDX-license-identifier-BSD", |
| 26 | "SPDX-license-identifier-MIT", |
| 27 | "legacy_unencumbered", |
| 28 | ], |
| 29 | license_text: [ |
| 30 | "NOTICE", |
| 31 | ], |
| 32 | } |
| 33 | |
Jack He | cac30a2 | 2018-08-28 18:28:55 -0700 | [diff] [blame] | 34 | filegroup { |
Colin Cross | 03e29e5 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 35 | name: "BluetoothTestConfigTemplate", |
| 36 | srcs: [ |
| 37 | "AndroidTestTemplate.xml", |
| 38 | ], |
Jack He | cac30a2 | 2018-08-28 18:28:55 -0700 | [diff] [blame] | 39 | } |
David Duarte | a84ffd1 | 2023-03-28 17:58:57 +0000 | [diff] [blame] | 40 | |
| 41 | filegroup { |
| 42 | name: "BluetoothGTestForce32ConfigTemplate", |
| 43 | srcs: [ |
| 44 | "AndroidGTestForce32Template.xml", |
| 45 | ], |
| 46 | } |
| 47 | |
| 48 | // Address Sanitizer is flaky on Android x86_64 binaries but it's not on x86 |
| 49 | // binaries. |
| 50 | // This default workaround the x86_64 ASAN flakyness by running 32bit binaries |
| 51 | // on 64bit targets. |
| 52 | // TODO(b/154347133): Remove this workaround |
| 53 | cc_defaults { |
| 54 | name: "bluetooth_gtest_x86_asan_workaround", |
| 55 | target: { |
| 56 | android_x86: { |
| 57 | test_config_template: ":BluetoothGTestForce32ConfigTemplate", |
| 58 | }, |
| 59 | android_x86_64: { |
| 60 | enabled: false, |
| 61 | }, |
| 62 | }, |
| 63 | } |