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: [ |
| 27 | "//apex_available:platform", |
| 28 | "com.android.neuralnetworks", |
John Reck | ef1d9b6 | 2022-01-04 11:08:53 -0500 | [diff] [blame] | 29 | "com.android.media.swcodec", |
Michael Butler | f03ebd9 | 2021-03-25 15:27:38 -0700 | [diff] [blame] | 30 | ], |
| 31 | min_sdk_version: "29", |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | cc_test { |
| 35 | name: "libaidlcommonsupport_test", |
| 36 | host_supported: true, |
Steven Moreland | 738d3d5 | 2022-01-07 22:15:32 +0000 | [diff] [blame] | 37 | target: { |
| 38 | darwin: { |
| 39 | enabled: false, |
| 40 | }, |
| 41 | }, |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 42 | srcs: ["test.cpp"], |
| 43 | static_libs: [ |
Jiyong Park | 27f77fe | 2021-07-27 12:16:52 +0900 | [diff] [blame] | 44 | "android.hardware.common-V2-ndk", |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 45 | "libaidlcommonsupport", |
| 46 | ], |
| 47 | shared_libs: [ |
Steven Moreland | 74e043b | 2020-12-15 00:13:40 +0000 | [diff] [blame] | 48 | "libcutils", |
| 49 | ], |
| 50 | test_suites: ["general-tests"], |
| 51 | } |