Bob Badour | 56786ac | 2021-02-25 15:24:36 -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 "frameworks_av_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_av_license"], |
| 8 | } |
| 9 | |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 10 | aidl_interface { |
| 11 | name: "shared-file-region-aidl", |
| 12 | unstable: true, |
Ytai Ben-Tsvi | 4dfeb62 | 2020-11-02 12:47:30 -0800 | [diff] [blame] | 13 | host_supported: true, |
| 14 | vendor_available: true, |
| 15 | double_loadable: true, |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 16 | local_include_dir: "aidl", |
| 17 | srcs: [ |
| 18 | "aidl/android/media/SharedFileRegion.aidl", |
| 19 | ], |
| 20 | } |
| 21 | |
| 22 | cc_library { |
| 23 | name: "libshmemcompat", |
| 24 | export_include_dirs: ["include"], |
| 25 | srcs: ["ShmemCompat.cpp"], |
Ytai Ben-Tsvi | 71109da | 2020-11-03 15:11:13 -0800 | [diff] [blame] | 26 | host_supported: true, |
| 27 | vendor_available: true, |
| 28 | double_loadable: true, |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 29 | shared_libs: [ |
| 30 | "libbinder", |
| 31 | "libshmemutil", |
| 32 | "libutils", |
Jeongik Cha | 7f2285b | 2021-01-28 00:49:46 +0900 | [diff] [blame] | 33 | "shared-file-region-aidl-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 34 | ], |
| 35 | export_shared_lib_headers: [ |
| 36 | "libbinder", |
| 37 | "libutils", |
Jeongik Cha | 7f2285b | 2021-01-28 00:49:46 +0900 | [diff] [blame] | 38 | "shared-file-region-aidl-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 39 | ], |
Ytai Ben-Tsvi | 8a9048f | 2020-11-30 14:19:26 -0800 | [diff] [blame] | 40 | target: { |
| 41 | darwin: { |
| 42 | enabled: false, |
| 43 | }, |
| 44 | }, |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | cc_library { |
| 48 | name: "libshmemutil", |
| 49 | export_include_dirs: ["include"], |
| 50 | srcs: ["ShmemUtil.cpp"], |
Ytai Ben-Tsvi | 71109da | 2020-11-03 15:11:13 -0800 | [diff] [blame] | 51 | host_supported: true, |
| 52 | vendor_available: true, |
| 53 | double_loadable: true, |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 54 | shared_libs: [ |
Jeongik Cha | 7f2285b | 2021-01-28 00:49:46 +0900 | [diff] [blame] | 55 | "shared-file-region-aidl-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 56 | ], |
| 57 | export_shared_lib_headers: [ |
Jeongik Cha | 7f2285b | 2021-01-28 00:49:46 +0900 | [diff] [blame] | 58 | "shared-file-region-aidl-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 59 | ], |
Ytai Ben-Tsvi | 8a9048f | 2020-11-30 14:19:26 -0800 | [diff] [blame] | 60 | target: { |
| 61 | darwin: { |
| 62 | enabled: false, |
| 63 | }, |
| 64 | }, |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | cc_test { |
| 68 | name: "shmemTest", |
| 69 | srcs: ["ShmemTest.cpp"], |
| 70 | shared_libs: [ |
| 71 | "libbinder", |
Ytai Ben-Tsvi | e817f39 | 2020-10-20 09:16:19 -0700 | [diff] [blame] | 72 | "libcutils", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 73 | "libshmemcompat", |
| 74 | "libshmemutil", |
| 75 | "libutils", |
Jeongik Cha | 7f2285b | 2021-01-28 00:49:46 +0900 | [diff] [blame] | 76 | "shared-file-region-aidl-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 77 | ], |
| 78 | test_suites: ["device-tests"], |
| 79 | } |