1# Copyright (c) 2022-2023 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 16config("avsession_common_config") { 17 include_dirs = [ "../../interfaces/inner_api/native/session/include" ] 18} 19 20ohos_shared_library("avsession_common") { 21 install_enable = true 22 sanitize = { 23 cfi = true 24 cfi_cross_dso = true 25 debug = false 26 } 27 sources = [ 28 "src/av_file_descriptor.cpp", 29 "src/avcall_meta_data.cpp", 30 "src/avcall_state.cpp", 31 "src/avcast_control_command.cpp", 32 "src/avcast_player_state.cpp", 33 "src/avcontrol_command.cpp", 34 "src/avmedia_description.cpp", 35 "src/avmeta_data.cpp", 36 "src/avplayback_state.cpp", 37 "src/avqueue_info.cpp", 38 "src/avqueue_item.cpp", 39 "src/avsession_descriptor.cpp", 40 "src/avsession_pixel_map.cpp", 41 "src/media_info.cpp", 42 "src/media_info_holder.cpp", 43 ] 44 45 public_configs = [ ":avsession_common_config" ] 46 47 public_deps = [ "../../utils:avsession_utils" ] 48 49 external_deps = [ 50 "ability_base:want", 51 "ability_runtime:wantagent_innerkits", 52 "c_utils:utils", 53 "hilog:libhilog", 54 ] 55 56 subsystem_name = "multimedia" 57 innerapi_tags = [ "platformsdk" ] 58 part_name = "av_session" 59} 60