• 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/native_avmetadata"
18
19ohos_unittest("native_avmetadataextractor_unit_test") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "../../../common",
23    "./include",
24    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native",
25    "$MEDIA_PLAYER_ROOT_DIR/services/utils/include",
26    "$MEDIA_PLAYER_ROOT_DIR/frameworks/native/player",
27    "$MEDIA_PLAYER_ROOT_DIR/test/unittest/common/include",
28    "$MEDIA_PLAYER_ROOT_DIR/interfaces/kits/c",
29    "$MEDIA_PLAYER_ROOT_DIR/frameworks/native/capi/avmetadatahelper",
30    "$MEDIA_PLAYER_ROOT_DIR/frameworks/native/capi/common",
31  ]
32
33  sanitize = {
34    cfi = true
35    cfi_cross_dso = true
36    debug = false
37  }
38
39  cflags = [
40    "-Wall",
41    "-Werror",
42    "-Wno-deprecated-declarations",
43    "-Dprivate=public",
44    "-Dprotected=public",
45  ]
46
47  if (player_framework_support_metadata) {
48    sources = [ "src/avmetadataextractor_unit_test.cpp" ]
49  }
50  public_deps =
51      [ "$MEDIA_PLAYER_ROOT_DIR/interfaces/kits/c:avmetadata_extractor" ]
52
53  external_deps = [
54    "audio_framework:audio_capturer",
55    "audio_framework:audio_client",
56    "av_codec:av_codec_client",
57    "c_utils:utils",
58    "graphic_surface:surface",
59    "graphic_surface:sync_fence",
60    "hilog:libhilog",
61    "hisysevent:libhisysevent",
62    "image_framework:image_native",
63    "image_framework:image_receiver_ndk",
64    "image_framework:pixelmap",
65    "init:libbegetutil",
66    "ipc:ipc_core",
67    "media_foundation:media_foundation",
68    "media_foundation:media_monitor_buffer",
69    "media_foundation:media_monitor_client",
70    "media_foundation:media_monitor_common",
71    "media_foundation:native_media_core",
72    "qos_manager:qos",
73    "samgr:samgr_proxy",
74    "window_manager:libdm",
75  ]
76
77  resource_config_file =
78      "$MEDIA_PLAYER_ROOT_DIR/test/unittest/resources/ohos_test.xml"
79}
80