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") 17MEDIA_ROOT_DIR = "//foundation/multimedia/player_framework/" 18 19config("public_ffi_config") { 20 include_dirs = [] 21} 22 23ohos_shared_library("cj_avplayer_ffi") { 24 public_configs = [ ":public_ffi_config" ] 25 26 sanitize = { 27 boundary_sanitize = true 28 ubsan = true 29 cfi = true 30 cfi_cross_dso = true 31 debug = false 32 } 33 34 include_dirs = [ 35 "$MEDIA_ROOT_DIR/frameworks/cj/avplayer", 36 "$MEDIA_ROOT_DIR/frameworks/cj/mediasource", 37 "$MEDIA_ROOT_DIR/interfaces/inner_api", 38 "$MEDIA_ROOT_DIR/services/utils/include", 39 "$MEDIA_ROOT_DIR/frameworks/js/avplayer", 40 "$MEDIA_ROOT_DIR/frameworks/js/common", 41 ] 42 43 sources = [ 44 "$MEDIA_ROOT_DIR/frameworks/cj/mediasource/media_source_ffi.cpp", 45 "cj_avplayer.cpp", 46 "cj_avplayer_callback.cpp", 47 "cj_avplayer_ffi.cpp", 48 "cj_avplayer_utils.cpp", 49 "cj_media_data_source_callback.cpp", 50 ] 51 52 deps = [ 53 "$MEDIA_ROOT_DIR/frameworks/js/avplayer:media_avplayer", 54 "$MEDIA_ROOT_DIR/interfaces/inner_api/native:media_client", 55 "$MEDIA_ROOT_DIR/services/utils:media_service_utils", 56 ] 57 58 external_deps = [ 59 "audio_framework:audio_client", 60 "audio_framework:audio_foundation", 61 "audio_framework:cj_multimedia_audio_ffi", 62 "hilog:libhilog", 63 "napi:ace_napi", 64 "napi:cj_bind_ffi", 65 "napi:cj_bind_native", 66 "qos_manager:qos", 67 "graphic_surface:surface", 68 ] 69 70 innerapi_tags = [ "platformsdk" ] 71 subsystem_name = "multimedia" 72 part_name = "player_framework" 73} 74