180922886Sopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
280922886Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
380922886Sopenharmony_ci# you may not use this file except in compliance with the License.
480922886Sopenharmony_ci# You may obtain a copy of the License at
580922886Sopenharmony_ci#
680922886Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
780922886Sopenharmony_ci#
880922886Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
980922886Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1080922886Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1180922886Sopenharmony_ci# See the License for the specific language governing permissions and
1280922886Sopenharmony_ci# limitations under the License.
1380922886Sopenharmony_ci
1480922886Sopenharmony_ciimport("//build/ohos.gni")
1580922886Sopenharmony_ci
1680922886Sopenharmony_ciconfig("avsession_common_config") {
1780922886Sopenharmony_ci  include_dirs = [ "../../interfaces/inner_api/native/session/include" ]
1880922886Sopenharmony_ci}
1980922886Sopenharmony_ci
2080922886Sopenharmony_ciohos_shared_library("avsession_common") {
2180922886Sopenharmony_ci  install_enable = true
2280922886Sopenharmony_ci  sanitize = {
2380922886Sopenharmony_ci    cfi = true
2480922886Sopenharmony_ci    cfi_cross_dso = true
2580922886Sopenharmony_ci    debug = false
2680922886Sopenharmony_ci  }
2780922886Sopenharmony_ci  sources = [
2880922886Sopenharmony_ci    "src/av_file_descriptor.cpp",
2980922886Sopenharmony_ci    "src/avcall_meta_data.cpp",
3080922886Sopenharmony_ci    "src/avcall_state.cpp",
3180922886Sopenharmony_ci    "src/avcast_control_command.cpp",
3280922886Sopenharmony_ci    "src/avcast_player_state.cpp",
3380922886Sopenharmony_ci    "src/avcontrol_command.cpp",
3480922886Sopenharmony_ci    "src/avmedia_description.cpp",
3580922886Sopenharmony_ci    "src/avmeta_data.cpp",
3680922886Sopenharmony_ci    "src/avplayback_state.cpp",
3780922886Sopenharmony_ci    "src/avqueue_info.cpp",
3880922886Sopenharmony_ci    "src/avqueue_item.cpp",
3980922886Sopenharmony_ci    "src/avsession_descriptor.cpp",
4080922886Sopenharmony_ci    "src/avsession_pixel_map.cpp",
4180922886Sopenharmony_ci    "src/media_info.cpp",
4280922886Sopenharmony_ci    "src/media_info_holder.cpp",
4380922886Sopenharmony_ci  ]
4480922886Sopenharmony_ci
4580922886Sopenharmony_ci  public_configs = [ ":avsession_common_config" ]
4680922886Sopenharmony_ci
4780922886Sopenharmony_ci  public_deps = [ "../../utils:avsession_utils" ]
4880922886Sopenharmony_ci
4980922886Sopenharmony_ci  external_deps = [
5080922886Sopenharmony_ci    "ability_base:want",
5180922886Sopenharmony_ci    "ability_runtime:wantagent_innerkits",
5280922886Sopenharmony_ci    "c_utils:utils",
5380922886Sopenharmony_ci    "hilog:libhilog",
5480922886Sopenharmony_ci  ]
5580922886Sopenharmony_ci
5680922886Sopenharmony_ci  subsystem_name = "multimedia"
5780922886Sopenharmony_ci  innerapi_tags = [ "platformsdk" ]
5880922886Sopenharmony_ci  part_name = "av_session"
5980922886Sopenharmony_ci}
60