1# Copyright (C) 2024 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_framework_utils_test") {
18  module_out_path = "player_framework/media_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  ]
42
43  include_dirs = [
44    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native",
45    "$MEDIA_PLAYER_ROOT_DIR/services/services/engine_intf",
46    "$MEDIA_PLAYER_ROOT_DIR/services/utils/include",
47  ]
48
49  sources = [
50    "media_unils_unit_test.cpp",
51    "time_format_utils_unit_test.cpp",
52  ]
53
54  deps = [ "$MEDIA_PLAYER_ROOT_DIR/services/utils:media_service_utils" ]
55
56  external_deps = [
57    "access_token:libaccesstoken_sdk",
58    "access_token:libprivacy_sdk",
59    "av_codec:av_codec_client",
60    "bundle_framework:appexecfwk_base",
61    "bundle_framework:appexecfwk_core",
62    "c_utils:utils",
63    "graphic_surface:surface",
64    "hicollie:libhicollie",
65    "hilog:libhilog",
66    "hisysevent:libhisysevent",
67    "hitrace:hitrace_meter",
68    "hitrace:libhitracechain",
69    "init:libbegetutil",
70    "ipc:ipc_single",
71    "libxml2:libxml2",
72    "media_foundation:media_foundation",
73    "qos_manager:qos",
74    "samgr:samgr_proxy",
75  ]
76
77  subsystem_name = "multimedia"
78  part_name = "player_framework"
79}
80