1# Copyright (c) 2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15
16ohos_shared_library("libclearplay_driver") {
17  include_dirs = [
18    "./include",
19    "./include/drm",
20  ]
21
22  public_configs = [ ":clearplay_imp_external_library_config" ]
23  sources = [ "./src/media_key_system_factory_driver.cpp" ]
24
25  external_deps = [
26    "c_utils:utils",
27    "drivers_interface_drm:libdrm_stub_1.0",
28    "hdf_core:libhdf_host",
29    "hdf_core:libhdf_ipc_adapter",
30    "hdf_core:libhdf_utils",
31    "hdf_core:libhdi",
32    "hilog:libhilog",
33    "ipc:ipc_single",
34  ]
35  cflags = [
36    "-Wall",
37    "-Wextra",
38    "-Werror",
39    "-fsigned-char",
40    "-fno-common",
41    "-fno-strict-aliasing",
42  ]
43  shlib_type = "hdi"
44  install_images = [ chipset_base_dir ]
45  subsystem_name = "hdf"
46  part_name = "drivers_peripheral_clearplay"
47}
48
49config("clearplay_imp_external_library_config") {
50  include_dirs =
51      [ "//drivers/peripheral/clearplay/interfaces/include/drm/v1_0" ]
52}
53group("hdf_clearplay_interfaces") {
54  deps = [ ":libclearplay_driver" ]
55}
56