• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    blocklist = "../../cfi_blocklist.txt"
27  }
28  sources = [
29    "src/av_file_descriptor.cpp",
30    "src/avcall_meta_data.cpp",
31    "src/avcall_state.cpp",
32    "src/avcast_control_command.cpp",
33    "src/avcast_player_state.cpp",
34    "src/avcontrol_command.cpp",
35    "src/avmedia_description.cpp",
36    "src/avmeta_data.cpp",
37    "src/avplayback_state.cpp",
38    "src/avqueue_info.cpp",
39    "src/avqueue_item.cpp",
40    "src/avsession_descriptor.cpp",
41    "src/avsession_pixel_map.cpp",
42    "src/media_info.cpp",
43    "src/media_info_holder.cpp",
44  ]
45
46  public_configs = [ ":avsession_common_config" ]
47
48  public_deps = [ "../../utils:avsession_utils" ]
49
50  external_deps = [
51    "ability_base:want",
52    "ability_runtime:wantagent_innerkits",
53    "c_utils:utils",
54    "hilog:libhilog",
55  ]
56
57  subsystem_name = "multimedia"
58  innerapi_tags = [ "platformsdk" ]
59  part_name = "av_session"
60}
61