1# Copyright (c) 2025 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_avtranscoder_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/avplayer", 34 "${multimedia_player_framework_path}/services/utils/include", 35 "${multimedia_player_framework_path}/interfaces/inner_api/native/", 36 ] 37 38 deps = [ 39 "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client", 40 "${multimedia_player_framework_path}/services/utils:media_service_utils", 41 ] 42 external_deps = [ 43 "ability_base:want", 44 "ability_runtime:ability_manager", 45 "ability_runtime:abilitykit_native", 46 "ability_runtime:extensionkit_native", 47 "ability_runtime:napi_base_context", 48 "ability_runtime:wantagent_innerkits", 49 "audio_framework:cj_multimedia_audio_ffi", 50 "av_codec:av_codec_client", 51 "bounds_checking_function:libsec_shared", 52 "bundle_framework:appexecfwk_base", 53 "c_utils:utils", 54 "eventhandler:libeventhandler", 55 "hilog:libhilog", 56 "hisysevent:libhisysevent", 57 "ipc:ipc_core", 58 "ipc:ipc_single", 59 "napi:ace_napi", 60 "napi:cj_bind_ffi", 61 "napi:cj_bind_native", 62 "qos_manager:qos", 63 "resource_management:global_resmgr", 64 ] 65 sources = [ 66 "src/avtranscoder_ffi.cpp", 67 "src/cj_avtranscoder.cpp", 68 "src/cj_avtranscoder_callback.cpp", 69 ] 70 71 innerapi_tags = [ "platformsdk" ] 72 subsystem_name = "multimedia" 73 part_name = "player_framework" 74} 75