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