• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("libmedia_key_system_factory_clearplay_service_1.0") {
17  include_dirs = [
18    "./include",
19    "./include/drm/v1_0",
20    "./include/drm",
21    "./../interfaces/include",
22    "./../interfaces/include/drm/v1_0",
23    "./../interfaces/include/drm",
24    "./common",
25  ]
26  sources = [
27    "./common/base64_utils.cpp",
28    "./common/clearplay_uuid.cpp",
29    "./common/data_parser.cpp",
30    "./common/session.cpp",
31    "./src/media_decrypt_module_service.cpp",
32    "./src/media_key_session_callback_service.cpp",
33    "./src/media_key_session_service.cpp",
34    "./src/media_key_system_callback_service.cpp",
35    "./src/media_key_system_factory_service.cpp",
36    "./src/media_key_system_service.cpp",
37    "./src/oem_certificate_service.cpp",
38  ]
39
40  cflags = [
41    "-Wall",
42    "-Wextra",
43    "-Werror",
44    "-fsigned-char",
45    "-fno-common",
46    "-fno-strict-aliasing",
47  ]
48
49  external_deps = [
50    "c_utils:utils",
51    "hdf_core:libhdf_utils",
52    "hilog:libhilog",
53    "ipc:ipc_single",
54    "cJSON:cjson",
55    "openssl:libcrypto_shared",
56  ]
57
58  install_images = [ chipset_base_dir ]
59  subsystem_name = "hdf"
60  part_name = "drivers_peripheral_clearplay"
61}
62
63group("hdf_clearplay_service") {
64  deps = [ ":libmedia_key_system_factory_clearplay_service_1.0" ]
65}
66