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 16config("avsession_common_config") { 17 include_dirs = [ "//foundation/multimedia/av_session/interfaces/inner_api/native/session/include" ] 18} 19 20ohos_shared_library("avsession_common") { 21 install_enable = true 22 sanitize = { 23 cfi = true 24 debug = false 25 } 26 sources = [ 27 "src/avcontrol_command.cpp", 28 "src/avmeta_data.cpp", 29 "src/avplayback_state.cpp", 30 "src/avsession_descriptor.cpp", 31 "src/avsession_pixel_map.cpp", 32 ] 33 34 public_configs = [ ":avsession_common_config" ] 35 36 public_deps = [ "//foundation/multimedia/av_session/utils:avsession_utils" ] 37 38 external_deps = [ 39 "ability_base:want", 40 "c_utils:utils", 41 "hiviewdfx_hilog_native:libhilog", 42 ] 43 44 subsystem_name = "multimedia" 45 part_name = "multimedia_av_session" 46} 47