Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2019 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | c22b35b | 2021-02-23 14:26:20 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 24 | } |
| 25 | |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 26 | cc_library_static { |
Robert Shih | 5904a72 | 2022-01-14 12:43:22 -0800 | [diff] [blame^] | 27 | name: "libvtsclearkey", |
| 28 | srcs: [ |
| 29 | "drm_hal_clearkey_module.cpp", |
| 30 | ], |
| 31 | static_libs: [ |
| 32 | "libgtest", |
| 33 | ], |
| 34 | header_libs: ["drm_hal_vendor_module_headers"], |
| 35 | export_header_lib_headers: ["drm_hal_vendor_module_headers"], |
| 36 | export_include_dirs: ["."], |
| 37 | } |
| 38 | |
| 39 | cc_library_static { |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 40 | name: "android.hardware.drm@1.2-vts", |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 41 | defaults: ["VtsHalTargetTestDefaults"], |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 42 | local_include_dirs: [ |
| 43 | "include", |
| 44 | ], |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 45 | srcs: [ |
| 46 | "drm_hal_clearkey_module.cpp", |
| 47 | "drm_hal_common.cpp", |
| 48 | "drm_hal_test.cpp", |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 49 | ], |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 50 | shared_libs: [ |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 51 | "android.hardware.drm@1.0", |
| 52 | "android.hardware.drm@1.1", |
| 53 | "android.hardware.drm@1.2", |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 54 | "android.hidl.allocator@1.0", |
| 55 | "android.hidl.memory@1.0", |
Robert Shih | d85c649 | 2020-02-26 15:25:51 -0800 | [diff] [blame] | 56 | "libcrypto", |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 57 | "libhidlmemory", |
| 58 | "libnativehelper", |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 59 | ], |
| 60 | static_libs: [ |
| 61 | "android.hardware.drm@1.0-helper", |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 62 | "libdrmvtshelper", |
| 63 | ], |
| 64 | export_shared_lib_headers: [ |
| 65 | "android.hardware.drm@1.2", |
| 66 | ], |
| 67 | export_static_lib_headers: [ |
| 68 | "android.hardware.drm@1.0-helper", |
| 69 | ], |
| 70 | export_include_dirs: [ |
| 71 | "include", |
| 72 | ], |
| 73 | } |
| 74 | |
| 75 | cc_test { |
| 76 | name: "VtsHalDrmV1_2TargetTest", |
| 77 | defaults: ["VtsHalTargetTestDefaults"], |
| 78 | srcs: [ |
| 79 | "drm_hal_test_main.cpp", |
| 80 | ], |
| 81 | whole_static_libs: [ |
| 82 | "android.hardware.drm@1.2-vts", |
| 83 | ], |
| 84 | shared_libs: [ |
| 85 | "android.hardware.drm@1.0", |
| 86 | "android.hardware.drm@1.2", |
| 87 | "android.hidl.allocator@1.0", |
Robert Shih | d85c649 | 2020-02-26 15:25:51 -0800 | [diff] [blame] | 88 | "libcrypto", |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 89 | "libhidlmemory", |
| 90 | ], |
| 91 | static_libs: [ |
| 92 | "android.hardware.drm@1.0-helper", |
Robert Shih | ddf6b96 | 2020-01-18 03:01:57 -0800 | [diff] [blame] | 93 | "libdrmvtshelper", |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 94 | ], |
Dan Shi | 3d0285b | 2020-02-25 15:42:48 -0800 | [diff] [blame] | 95 | arch: { |
| 96 | arm: { |
| 97 | data: [":libvtswidevine-arm-prebuilts"], |
| 98 | }, |
| 99 | arm64: { |
| 100 | data: [":libvtswidevine-arm64-prebuilts"], |
| 101 | }, |
| 102 | x86: { |
| 103 | data: [":libvtswidevine-x86-prebuilts"], |
| 104 | }, |
| 105 | x86_64: { |
| 106 | data: [":libvtswidevine-x86_64-prebuilts"], |
| 107 | }, |
| 108 | }, |
Dan Shi | d5f8588 | 2019-10-23 12:45:55 -0700 | [diff] [blame] | 109 | test_suites: [ |
| 110 | "general-tests", |
Dan Shi | 3a8a650 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 111 | "vts", |
Dan Shi | d5f8588 | 2019-10-23 12:45:55 -0700 | [diff] [blame] | 112 | ], |
Robert Shih | 456f3a64 | 2019-02-28 13:42:28 -0800 | [diff] [blame] | 113 | } |