• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/test.gni")
15import("//foundation/multimedia/player_framework/config.gni")
16
17module_output_path = "player_framework/player_framework/player"
18
19ohos_unittest("avmetadatahelper_impl_unit_test") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "./",
23    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native",
24    "$MEDIA_PLAYER_ROOT_DIR/test/unittest/common/include",
25    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/server",
26    "$MEDIA_PLAYER_ROOT_DIR/services/include",
27    "$MEDIA_PLAYER_ROOT_DIR/services/services/factory",
28    "$MEDIA_PLAYER_ROOT_DIR/services/services/engine_intf",
29    "$MEDIA_PLAYER_ROOT_DIR/services/utils/include",
30    "$MEDIA_PLAYER_ROOT_DIR/services/engine/histreamer/avmetadatahelper",
31    "$MEDIA_PLAYER_ROOT_DIR/services/services/common",
32    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/subscriber",
33    "$MEDIA_PLAYER_ROOT_DIR/services/engine/histreamer/utils",
34  ]
35
36  cflags = [
37    "-Wall",
38    "-Werror",
39    "-Wno-deprecated-declarations",
40    "-Dprivate=public",
41    "-Dprotected=public",
42  ]
43
44  sources = [
45    "//foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/avmetadatahelper_impl.cpp",
46    "//foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/av_thumbnail_generator.cpp",
47    "//foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/avmetadata_collector.cpp",
48    "avmetadatahelper_impl_unit_test.cpp",
49  ]
50
51  deps = [
52    "$MEDIA_PLAYER_ROOT_DIR/services/dfx:media_service_dfx",
53    "$MEDIA_PLAYER_ROOT_DIR/services/dfx:media_service_log_dfx",
54    "$MEDIA_PLAYER_ROOT_DIR/services/utils:media_service_utils",
55  ]
56
57  external_deps = [
58    "access_token:libaccesstoken_sdk",
59    "access_token:libprivacy_sdk",
60    "audio_framework:audio_client",
61    "audio_framework:audio_renderer",
62    "av_codec:av_codec_client",
63    "av_codec:av_codec_media_engine_filters",
64    "av_codec:av_codec_media_engine_modules",
65    "bundle_framework:appexecfwk_base",
66    "bundle_framework:appexecfwk_core",
67    "c_utils:utils",
68    "drivers_interface_display:display_commontype_idl_headers",
69    "googletest:gmock",
70    "graphic_surface:surface",
71    "graphic_surface:sync_fence",
72    "hicollie:libhicollie",
73    "hilog:libhilog",
74    "hisysevent:libhisysevent",
75    "hitrace:hitrace_meter",
76    "hitrace:libhitracechain",
77    "image_framework:image_native",
78    "init:libbegetutil",
79    "ipc:ipc_single",
80    "libxml2:libxml2",
81    "media_foundation:media_foundation",
82    "os_account:os_account_innerkits",
83    "qos_manager:qos",
84    "safwk:system_ability_fwk",
85    "samgr:samgr_proxy",
86  ]
87
88  if (defined(global_parts_info) &&
89      defined(global_parts_info.multimedia_histreamer_ext)) {
90    defines = [ "SUBSCRIBE_HISTREAMER_EXT" ]
91  }
92
93  if (player_framework_support_drm) {
94    external_deps += [ "drm_framework:drm_framework" ]
95  }
96}
97