Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 1 | aidl_interface { |
| 2 | name: "shared-file-region-aidl", |
| 3 | unstable: true, |
Ytai Ben-Tsvi | 4dfeb62 | 2020-11-02 12:47:30 -0800 | [diff] [blame^] | 4 | host_supported: true, |
| 5 | vendor_available: true, |
| 6 | double_loadable: true, |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 7 | local_include_dir: "aidl", |
| 8 | srcs: [ |
| 9 | "aidl/android/media/SharedFileRegion.aidl", |
| 10 | ], |
| 11 | } |
| 12 | |
| 13 | cc_library { |
| 14 | name: "libshmemcompat", |
| 15 | export_include_dirs: ["include"], |
| 16 | srcs: ["ShmemCompat.cpp"], |
| 17 | shared_libs: [ |
| 18 | "libbinder", |
| 19 | "libshmemutil", |
| 20 | "libutils", |
Jeongik Cha | bde90a4 | 2020-08-29 02:09:08 +0900 | [diff] [blame] | 21 | "shared-file-region-aidl-unstable-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 22 | ], |
| 23 | export_shared_lib_headers: [ |
| 24 | "libbinder", |
| 25 | "libutils", |
Jeongik Cha | bde90a4 | 2020-08-29 02:09:08 +0900 | [diff] [blame] | 26 | "shared-file-region-aidl-unstable-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 27 | ], |
| 28 | } |
| 29 | |
| 30 | cc_library { |
| 31 | name: "libshmemutil", |
| 32 | export_include_dirs: ["include"], |
| 33 | srcs: ["ShmemUtil.cpp"], |
| 34 | shared_libs: [ |
Jeongik Cha | bde90a4 | 2020-08-29 02:09:08 +0900 | [diff] [blame] | 35 | "shared-file-region-aidl-unstable-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 36 | ], |
| 37 | export_shared_lib_headers: [ |
Jeongik Cha | bde90a4 | 2020-08-29 02:09:08 +0900 | [diff] [blame] | 38 | "shared-file-region-aidl-unstable-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 39 | ], |
| 40 | } |
| 41 | |
| 42 | cc_test { |
| 43 | name: "shmemTest", |
| 44 | srcs: ["ShmemTest.cpp"], |
| 45 | shared_libs: [ |
| 46 | "libbinder", |
Ytai Ben-Tsvi | e817f39 | 2020-10-20 09:16:19 -0700 | [diff] [blame] | 47 | "libcutils", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 48 | "libshmemcompat", |
| 49 | "libshmemutil", |
| 50 | "libutils", |
Jeongik Cha | bde90a4 | 2020-08-29 02:09:08 +0900 | [diff] [blame] | 51 | "shared-file-region-aidl-unstable-cpp", |
Ytai Ben-Tsvi | 37934a2 | 2020-08-11 15:53:04 -0700 | [diff] [blame] | 52 | ], |
| 53 | test_suites: ["device-tests"], |
| 54 | } |