Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 8 | } |
| 9 | |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 10 | cc_library_static { |
| 11 | name: "libaidlcommonsupport", |
| 12 | vendor_available: true, |
Nikita Putikhin | 3e40dc1 | 2024-05-08 17:35:18 +0200 | [diff] [blame] | 13 | product_available: true, |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 14 | host_supported: true, |
Steven Moreland | 738d3d5 | 2022-01-07 22:15:32 +0000 | [diff] [blame] | 15 | target: { |
| 16 | darwin: { |
| 17 | enabled: false, |
| 18 | }, |
| 19 | }, |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 20 | srcs: ["NativeHandle.cpp"], |
| 21 | export_include_dirs: ["include"], |
| 22 | shared_libs: [ |
Jiyong Park | 27f77fe | 2021-07-27 12:16:52 +0900 | [diff] [blame] | 23 | "android.hardware.common-V2-ndk", |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 24 | "libcutils", |
| 25 | ], |
Michael Butler | f03ebd9 | 2021-03-25 15:27:38 -0700 | [diff] [blame] | 26 | apex_available: [ |
Cheng Gu | 974ff63 | 2024-07-02 20:18:26 +0000 | [diff] [blame] | 27 | "//apex_available:anyapex", |
Michael Butler | f03ebd9 | 2021-03-25 15:27:38 -0700 | [diff] [blame] | 28 | "//apex_available:platform", |
Michael Butler | f03ebd9 | 2021-03-25 15:27:38 -0700 | [diff] [blame] | 29 | ], |
| 30 | min_sdk_version: "29", |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | cc_test { |
| 34 | name: "libaidlcommonsupport_test", |
| 35 | host_supported: true, |
Steven Moreland | 738d3d5 | 2022-01-07 22:15:32 +0000 | [diff] [blame] | 36 | target: { |
| 37 | darwin: { |
| 38 | enabled: false, |
| 39 | }, |
| 40 | }, |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 41 | srcs: ["test.cpp"], |
| 42 | static_libs: [ |
Jiyong Park | 27f77fe | 2021-07-27 12:16:52 +0900 | [diff] [blame] | 43 | "android.hardware.common-V2-ndk", |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 44 | "libaidlcommonsupport", |
| 45 | ], |
| 46 | shared_libs: [ |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 47 | "libcutils", |
| 48 | ], |
| 49 | test_suites: ["general-tests"], |
| 50 | } |