Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 1 | // Copyright 2006 The Android Open Source Project |
| 2 | |
Bob Badour | d7984cc | 2021-02-12 20:51:13 -0800 | [diff] [blame] | 3 | package { |
| 4 | default_applicable_licenses: ["hardware_libhardware_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change that took the approach of |
| 8 | // 'apply every license found to every target'. While this makes sure we respect |
| 9 | // every license restriction, it may not be entirely correct. |
| 10 | // |
| 11 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 12 | // |
| 13 | // Please consider splitting the single license below into multiple licenses, |
| 14 | // taking care not to lose any license_kind information, and overriding the |
| 15 | // default license using the 'licenses: [...]' property on targets as needed. |
| 16 | // |
| 17 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 18 | // to attach the license to, and including a comment whether the files may be |
| 19 | // used in the current project. |
| 20 | // See: http://go/android-license-faq |
| 21 | license { |
| 22 | name: "hardware_libhardware_license", |
| 23 | visibility: [":__subpackages__"], |
| 24 | license_kinds: [ |
| 25 | "SPDX-license-identifier-Apache-2.0", |
| 26 | "SPDX-license-identifier-BSD", |
| 27 | ], |
| 28 | license_text: [ |
| 29 | "NOTICE", |
| 30 | ], |
| 31 | } |
| 32 | |
Vijay Venkatraman | 2ca3ee0 | 2017-04-04 14:25:43 -0700 | [diff] [blame] | 33 | cc_library_headers { |
| 34 | name: "libhardware_headers", |
Steven Moreland | d248790 | 2017-04-17 16:56:41 -0700 | [diff] [blame] | 35 | header_libs: [ |
| 36 | "libaudio_system_headers", |
| 37 | "libsystem_headers", |
Jiyong Park | 9bd43bd | 2017-06-26 13:28:51 +0900 | [diff] [blame] | 38 | "libcutils_headers", |
Dan Willemsen | 86e247a | 2017-12-18 21:10:37 -0800 | [diff] [blame] | 39 | "libbluetooth-types-header", |
Steven Moreland | d248790 | 2017-04-17 16:56:41 -0700 | [diff] [blame] | 40 | ], |
| 41 | export_header_lib_headers: [ |
| 42 | "libaudio_system_headers", |
Jiyong Park | 9bd43bd | 2017-06-26 13:28:51 +0900 | [diff] [blame] | 43 | "libsystem_headers", |
| 44 | "libcutils_headers", |
Dan Willemsen | 86e247a | 2017-12-18 21:10:37 -0800 | [diff] [blame] | 45 | "libbluetooth-types-header", |
Steven Moreland | d248790 | 2017-04-17 16:56:41 -0700 | [diff] [blame] | 46 | ], |
Steven Moreland | d393352 | 2017-04-13 19:14:57 -0700 | [diff] [blame] | 47 | |
Vijay Venkatraman | 2ca3ee0 | 2017-04-04 14:25:43 -0700 | [diff] [blame] | 48 | export_include_dirs: ["include"], |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 49 | recovery_available: true, |
Dan Willemsen | 5466d2e | 2017-04-07 14:15:17 -0700 | [diff] [blame] | 50 | vendor_available: true, |
Victor Khimenko | e22d90c | 2020-06-30 22:54:24 +0200 | [diff] [blame] | 51 | // TODO(b/153609531): remove when no longer needed. |
| 52 | native_bridge_supported: true, |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 53 | target: { |
| 54 | recovery: { |
| 55 | exclude_header_libs: [ |
| 56 | "libaudio_system_headers", |
| 57 | "libbluetooth-types-header", |
| 58 | ], |
| 59 | }, |
| 60 | }, |
Jooyung Han | b1e43a9 | 2020-04-16 18:48:32 +0900 | [diff] [blame] | 61 | min_sdk_version: "29", |
A. Cody Schuffelen | e8ee2fc | 2020-04-29 14:46:38 -0700 | [diff] [blame] | 62 | host_supported: true, |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 63 | |
Vijay Venkatraman | 2ca3ee0 | 2017-04-04 14:25:43 -0700 | [diff] [blame] | 64 | } |
| 65 | |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 66 | cc_library_shared { |
| 67 | name: "libhardware", |
| 68 | |
| 69 | srcs: ["hardware.c"], |
| 70 | shared_libs: [ |
| 71 | "libcutils", |
| 72 | "liblog", |
| 73 | "libdl", |
Jiyong Park | 375f1a4 | 2017-05-11 02:15:07 +0900 | [diff] [blame] | 74 | "libvndksupport", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 75 | ], |
Chih-Hung Hsieh | 2359423 | 2017-09-29 15:41:15 -0700 | [diff] [blame] | 76 | cflags: [ |
| 77 | "-DQEMU_HARDWARE", |
| 78 | "-Wall", |
| 79 | "-Werror", |
| 80 | ], |
Steven Moreland | d393352 | 2017-04-13 19:14:57 -0700 | [diff] [blame] | 81 | |
| 82 | header_libs: ["libhardware_headers"], |
| 83 | export_header_lib_headers: ["libhardware_headers"], |
| 84 | |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 85 | recovery_available: true, |
Dan Willemsen | 5466d2e | 2017-04-07 14:15:17 -0700 | [diff] [blame] | 86 | vendor_available: true, |
Justin Yun | d49aeee | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 87 | vndk: { |
| 88 | enabled: true, |
| 89 | support_system_process: true, |
| 90 | }, |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 91 | target: { |
| 92 | recovery: { |
| 93 | exclude_shared_libs: ["libvndksupport"], |
| 94 | }, |
| 95 | }, |
Jooyung Han | b1e43a9 | 2020-04-16 18:48:32 +0900 | [diff] [blame] | 96 | min_sdk_version: "29", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 97 | } |