blob: 92c77faa7832d4c1d615e69891093bdc8c442c95 [file] [log] [blame]
Dan Willemsenf51bf922016-07-12 22:29:13 -07001// Copyright 2006 The Android Open Source Project
2
Bob Badourd7984cc2021-02-12 20:51:13 -08003package {
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
21license {
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 Venkatraman2ca3ee02017-04-04 14:25:43 -070033cc_library_headers {
34 name: "libhardware_headers",
Steven Morelandd2487902017-04-17 16:56:41 -070035 header_libs: [
36 "libaudio_system_headers",
37 "libsystem_headers",
Jiyong Park9bd43bd2017-06-26 13:28:51 +090038 "libcutils_headers",
Dan Willemsen86e247a2017-12-18 21:10:37 -080039 "libbluetooth-types-header",
Steven Morelandd2487902017-04-17 16:56:41 -070040 ],
41 export_header_lib_headers: [
42 "libaudio_system_headers",
Jiyong Park9bd43bd2017-06-26 13:28:51 +090043 "libsystem_headers",
44 "libcutils_headers",
Dan Willemsen86e247a2017-12-18 21:10:37 -080045 "libbluetooth-types-header",
Steven Morelandd2487902017-04-17 16:56:41 -070046 ],
Steven Morelandd3933522017-04-13 19:14:57 -070047
Vijay Venkatraman2ca3ee02017-04-04 14:25:43 -070048 export_include_dirs: ["include"],
Jerry Zhang551e1f72018-06-20 17:04:52 -070049 recovery_available: true,
Dan Willemsen5466d2e2017-04-07 14:15:17 -070050 vendor_available: true,
Victor Khimenkoe22d90c2020-06-30 22:54:24 +020051 // TODO(b/153609531): remove when no longer needed.
52 native_bridge_supported: true,
Jerry Zhang551e1f72018-06-20 17:04:52 -070053 target: {
54 recovery: {
55 exclude_header_libs: [
56 "libaudio_system_headers",
57 "libbluetooth-types-header",
58 ],
59 },
60 },
Roopa Sattirajuda4e70b2021-12-22 18:05:30 -080061 apex_available: [
62 "//apex_available:platform",
63 "com.android.bluetooth",
Ray Essick0a0dd5f2022-02-09 10:14:29 -080064 "com.android.media.swcodec",
Roopa Sattirajuda4e70b2021-12-22 18:05:30 -080065 ],
Jooyung Hanb1e43a92020-04-16 18:48:32 +090066 min_sdk_version: "29",
A. Cody Schuffelene8ee2fc2020-04-29 14:46:38 -070067 host_supported: true,
Jerry Zhang551e1f72018-06-20 17:04:52 -070068
Vijay Venkatraman2ca3ee02017-04-04 14:25:43 -070069}
70
Dan Willemsenf51bf922016-07-12 22:29:13 -070071cc_library_shared {
72 name: "libhardware",
73
74 srcs: ["hardware.c"],
75 shared_libs: [
76 "libcutils",
77 "liblog",
78 "libdl",
Jiyong Park375f1a42017-05-11 02:15:07 +090079 "libvndksupport",
Dan Willemsenf51bf922016-07-12 22:29:13 -070080 ],
Chih-Hung Hsieh23594232017-09-29 15:41:15 -070081 cflags: [
82 "-DQEMU_HARDWARE",
83 "-Wall",
84 "-Werror",
85 ],
Steven Morelandd3933522017-04-13 19:14:57 -070086
87 header_libs: ["libhardware_headers"],
88 export_header_lib_headers: ["libhardware_headers"],
89
Jerry Zhang551e1f72018-06-20 17:04:52 -070090 recovery_available: true,
Dan Willemsen5466d2e2017-04-07 14:15:17 -070091 vendor_available: true,
Justin Yund49aeee2017-07-24 15:19:45 +090092 vndk: {
93 enabled: true,
94 support_system_process: true,
95 },
Jerry Zhang551e1f72018-06-20 17:04:52 -070096 target: {
97 recovery: {
98 exclude_shared_libs: ["libvndksupport"],
99 },
100 },
Jooyung Hanb1e43a92020-04-16 18:48:32 +0900101 min_sdk_version: "29",
Dan Willemsenf51bf922016-07-12 22:29:13 -0700102}