• 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
17ohos_unittest("player_xcollie_unittest") {
18  module_out_path = "player_framework/player_framework/services/utils"
19
20  cflags = [
21    "-std=c++17",
22    "-fno-rtti",
23    "-fno-exceptions",
24    "-Wall",
25    "-fno-common",
26    "-fstack-protector-strong",
27    "-Wshadow",
28    "-FPIC",
29    "-FS",
30    "-O2",
31    "-D_FORTIFY_SOURCE=2",
32    "-fvisibility=hidden",
33    "-Wformat=2",
34    "-Wfloat-equal",
35    "-Wdate-time",
36    "-Werror",
37    "-Wextra",
38    "-Wimplicit-fallthrough",
39    "-Wsign-compare",
40    "-Wunused-parameter",
41    "-Dprivate=public",
42    "-Dprotected=public",
43  ]
44
45  include_dirs = [
46    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native",
47    "$MEDIA_PLAYER_ROOT_DIR/services/services/engine_intf",
48    "$MEDIA_PLAYER_ROOT_DIR/services/utils/include",
49  ]
50
51  sources = [
52    "player_xcollie_unittest.cpp",
53  ]
54
55  deps = [ "$MEDIA_PLAYER_ROOT_DIR/services/utils:media_service_utils" ]
56
57  external_deps = [
58    "access_token:libaccesstoken_sdk",
59    "access_token:libprivacy_sdk",
60    "av_codec:av_codec_client",
61    "bundle_framework:appexecfwk_base",
62    "bundle_framework:appexecfwk_core",
63    "c_utils:utils",
64    "googletest:gmock",
65    "graphic_surface:surface",
66    "hicollie:libhicollie",
67    "hilog:libhilog",
68    "hisysevent:libhisysevent",
69    "hitrace:hitrace_meter",
70    "hitrace:libhitracechain",
71    "init:libbegetutil",
72    "ipc:ipc_single",
73    "libxml2:libxml2",
74    "media_foundation:media_foundation",
75    "qos_manager:qos",
76    "samgr:samgr_proxy",
77  ]
78
79  if (player_framework_support_drm) {
80    external_deps += [ "drm_framework:drm_framework" ]
81  }
82
83  subsystem_name = "multimedia"
84  part_name = "player_framework"
85}
86