1# Copyright (c) 2024 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") 15import("//build/ohos/ace/ace.gni") 16import("//foundation/multimedia/player_framework/config.gni") 17import("./../../../multimedia_player_framework_aafwk.gni") 18 19config("public_ffi_config") { 20 include_dirs = [ "include" ] 21} 22 23ohos_shared_library("cj_avscreen_capture_ffi") { 24 public_configs = [ ":public_ffi_config" ] 25 26 sanitize = { 27 cfi = true 28 cfi_cross_dso = true 29 cfi_vcall_icall_only = true 30 debug = false 31 } 32 include_dirs = [ 33 "${multimedia_player_framework_path}/frameworks/cj/avscreen_capture/include", 34 "${multimedia_player_framework_path}/services/utils/include", 35 "//foundation/multimedia/player_framework/interfaces/inner_api/native/", 36 ] 37 38 if (!defined(defines)) { 39 defines = [] 40 } 41 42 deps = [ 43 "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client", 44 "${multimedia_player_framework_path}/services/utils:media_service_utils", 45 ] 46 external_deps = [ 47 "ability_base:want", 48 "ability_runtime:ability_manager", 49 "ability_runtime:abilitykit_native", 50 "ability_runtime:extensionkit_native", 51 "ability_runtime:napi_base_context", 52 "ability_runtime:wantagent_innerkits", 53 "audio_framework:audio_client", 54 "audio_framework:audio_renderer", 55 "audio_framework:cj_multimedia_audio_ffi", 56 "av_codec:av_codec_client", 57 "bounds_checking_function:libsec_shared", 58 "bundle_framework:appexecfwk_base", 59 "c_utils:utils", 60 "eventhandler:libeventhandler", 61 "hilog:libhilog", 62 "hisysevent:libhisysevent", 63 "ipc:ipc_core", 64 "ipc:ipc_single", 65 "napi:ace_napi", 66 "napi:cj_bind_ffi", 67 "napi:cj_bind_native", 68 "qos_manager:qos", 69 "resource_management:global_resmgr", 70 ] 71 sources = [ 72 "src/avscreen_capture_ffi.cpp", 73 "src/cj_avscreen_capture.cpp", 74 "src/cj_avscreen_capture_callback.cpp", 75 ] 76 77 innerapi_tags = [ "platformsdk" ] 78 subsystem_name = "multimedia" 79 part_name = "player_framework" 80} 81