Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 1 | // Copyright 2006 The Android Open Source Project |
| 2 | |
Vijay Venkatraman | 2ca3ee0 | 2017-04-04 14:25:43 -0700 | [diff] [blame] | 3 | cc_library_headers { |
| 4 | name: "libhardware_headers", |
Steven Moreland | d248790 | 2017-04-17 16:56:41 -0700 | [diff] [blame] | 5 | header_libs: [ |
| 6 | "libaudio_system_headers", |
| 7 | "libsystem_headers", |
Jiyong Park | 9bd43bd | 2017-06-26 13:28:51 +0900 | [diff] [blame] | 8 | "libcutils_headers", |
Dan Willemsen | 86e247a | 2017-12-18 21:10:37 -0800 | [diff] [blame] | 9 | "libbluetooth-types-header", |
Steven Moreland | d248790 | 2017-04-17 16:56:41 -0700 | [diff] [blame] | 10 | ], |
| 11 | export_header_lib_headers: [ |
| 12 | "libaudio_system_headers", |
Jiyong Park | 9bd43bd | 2017-06-26 13:28:51 +0900 | [diff] [blame] | 13 | "libsystem_headers", |
| 14 | "libcutils_headers", |
Dan Willemsen | 86e247a | 2017-12-18 21:10:37 -0800 | [diff] [blame] | 15 | "libbluetooth-types-header", |
Steven Moreland | d248790 | 2017-04-17 16:56:41 -0700 | [diff] [blame] | 16 | ], |
Steven Moreland | d393352 | 2017-04-13 19:14:57 -0700 | [diff] [blame] | 17 | |
Vijay Venkatraman | 2ca3ee0 | 2017-04-04 14:25:43 -0700 | [diff] [blame] | 18 | export_include_dirs: ["include"], |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 19 | recovery_available: true, |
Dan Willemsen | 5466d2e | 2017-04-07 14:15:17 -0700 | [diff] [blame] | 20 | vendor_available: true, |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 21 | target: { |
| 22 | recovery: { |
| 23 | exclude_header_libs: [ |
| 24 | "libaudio_system_headers", |
| 25 | "libbluetooth-types-header", |
| 26 | ], |
| 27 | }, |
| 28 | }, |
| 29 | |
Vijay Venkatraman | 2ca3ee0 | 2017-04-04 14:25:43 -0700 | [diff] [blame] | 30 | } |
| 31 | |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 32 | cc_library_shared { |
| 33 | name: "libhardware", |
| 34 | |
| 35 | srcs: ["hardware.c"], |
| 36 | shared_libs: [ |
| 37 | "libcutils", |
| 38 | "liblog", |
| 39 | "libdl", |
Jiyong Park | 375f1a4 | 2017-05-11 02:15:07 +0900 | [diff] [blame] | 40 | "libvndksupport", |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 41 | ], |
Chih-Hung Hsieh | 2359423 | 2017-09-29 15:41:15 -0700 | [diff] [blame] | 42 | cflags: [ |
| 43 | "-DQEMU_HARDWARE", |
| 44 | "-Wall", |
| 45 | "-Werror", |
| 46 | ], |
Steven Moreland | d393352 | 2017-04-13 19:14:57 -0700 | [diff] [blame] | 47 | |
| 48 | header_libs: ["libhardware_headers"], |
| 49 | export_header_lib_headers: ["libhardware_headers"], |
| 50 | |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 51 | recovery_available: true, |
Dan Willemsen | 5466d2e | 2017-04-07 14:15:17 -0700 | [diff] [blame] | 52 | vendor_available: true, |
Justin Yun | d49aeee | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 53 | vndk: { |
| 54 | enabled: true, |
| 55 | support_system_process: true, |
| 56 | }, |
Jerry Zhang | 551e1f7 | 2018-06-20 17:04:52 -0700 | [diff] [blame] | 57 | target: { |
| 58 | recovery: { |
| 59 | exclude_shared_libs: ["libvndksupport"], |
| 60 | }, |
| 61 | }, |
Dan Willemsen | f51bf92 | 2016-07-12 22:29:13 -0700 | [diff] [blame] | 62 | } |