• 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  }
27  sources = [
28    "src/av_data_src_descriptor.cpp",
29    "src/av_file_descriptor.cpp",
30    "src/av_shared_memory_base.cpp",
31    "src/av_shared_memory_helper.cpp",
32    "src/avcall_meta_data.cpp",
33    "src/avcall_state.cpp",
34    "src/avcast_control_command.cpp",
35    "src/avcast_player_state.cpp",
36    "src/avcontrol_command.cpp",
37    "src/avmedia_description.cpp",
38    "src/avmeta_data.cpp",
39    "src/avplayback_state.cpp",
40    "src/avqueue_info.cpp",
41    "src/avqueue_item.cpp",
42    "src/avsession_descriptor.cpp",
43    "src/avsession_pixel_map.cpp",
44    "src/avsession_pixel_map_adapter.cpp",
45    "src/media_info.cpp",
46    "src/media_info_holder.cpp",
47  ]
48
49  public_configs = [ ":avsession_common_config" ]
50
51  public_deps = [ "../../utils:avsession_utils" ]
52
53  external_deps = [
54    "ability_base:want",
55    "ability_runtime:wantagent_innerkits",
56    "c_utils:utils",
57    "hilog:libhilog",
58    "image_framework:image_native",
59    "ipc:ipc_core",
60  ]
61
62  subsystem_name = "multimedia"
63  innerapi_tags = [ "platformsdk" ]
64  part_name = "av_session"
65}
66