1049e185fSopenharmony_ci# Copyright (C) 2024 Huawei Device Co., Ltd.
2049e185fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3049e185fSopenharmony_ci# you may not use this file except in compliance with the License.
4049e185fSopenharmony_ci# You may obtain a copy of the License at
5049e185fSopenharmony_ci#
6049e185fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7049e185fSopenharmony_ci#
8049e185fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9049e185fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10049e185fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11049e185fSopenharmony_ci# See the License for the specific language governing permissions and
12049e185fSopenharmony_ci# limitations under the License.
13049e185fSopenharmony_ci
14049e185fSopenharmony_ciimport("//build/test.gni")
15049e185fSopenharmony_ciimport("//foundation/multimedia/player_framework/config.gni")
16049e185fSopenharmony_ci
17049e185fSopenharmony_ciohos_unittest("player_framework_utils_test") {
18049e185fSopenharmony_ci  module_out_path = "player_framework/media_utils"
19049e185fSopenharmony_ci
20049e185fSopenharmony_ci  cflags = [
21049e185fSopenharmony_ci    "-std=c++17",
22049e185fSopenharmony_ci    "-fno-rtti",
23049e185fSopenharmony_ci    "-fno-exceptions",
24049e185fSopenharmony_ci    "-Wall",
25049e185fSopenharmony_ci    "-fno-common",
26049e185fSopenharmony_ci    "-fstack-protector-strong",
27049e185fSopenharmony_ci    "-Wshadow",
28049e185fSopenharmony_ci    "-FPIC",
29049e185fSopenharmony_ci    "-FS",
30049e185fSopenharmony_ci    "-O2",
31049e185fSopenharmony_ci    "-D_FORTIFY_SOURCE=2",
32049e185fSopenharmony_ci    "-fvisibility=hidden",
33049e185fSopenharmony_ci    "-Wformat=2",
34049e185fSopenharmony_ci    "-Wfloat-equal",
35049e185fSopenharmony_ci    "-Wdate-time",
36049e185fSopenharmony_ci    "-Werror",
37049e185fSopenharmony_ci    "-Wextra",
38049e185fSopenharmony_ci    "-Wimplicit-fallthrough",
39049e185fSopenharmony_ci    "-Wsign-compare",
40049e185fSopenharmony_ci    "-Wunused-parameter",
41049e185fSopenharmony_ci  ]
42049e185fSopenharmony_ci
43049e185fSopenharmony_ci  include_dirs = [
44049e185fSopenharmony_ci    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native",
45049e185fSopenharmony_ci    "$MEDIA_PLAYER_ROOT_DIR/services/services/engine_intf",
46049e185fSopenharmony_ci    "$MEDIA_PLAYER_ROOT_DIR/services/utils/include",
47049e185fSopenharmony_ci  ]
48049e185fSopenharmony_ci
49049e185fSopenharmony_ci  sources = [
50049e185fSopenharmony_ci    "media_unils_unit_test.cpp",
51049e185fSopenharmony_ci    "time_format_utils_unit_test.cpp",
52049e185fSopenharmony_ci  ]
53049e185fSopenharmony_ci
54049e185fSopenharmony_ci  deps = [ "$MEDIA_PLAYER_ROOT_DIR/services/utils:media_service_utils" ]
55049e185fSopenharmony_ci
56049e185fSopenharmony_ci  external_deps = [
57049e185fSopenharmony_ci    "access_token:libaccesstoken_sdk",
58049e185fSopenharmony_ci    "access_token:libprivacy_sdk",
59049e185fSopenharmony_ci    "av_codec:av_codec_client",
60049e185fSopenharmony_ci    "bundle_framework:appexecfwk_base",
61049e185fSopenharmony_ci    "bundle_framework:appexecfwk_core",
62049e185fSopenharmony_ci    "c_utils:utils",
63049e185fSopenharmony_ci    "graphic_surface:surface",
64049e185fSopenharmony_ci    "hicollie:libhicollie",
65049e185fSopenharmony_ci    "hilog:libhilog",
66049e185fSopenharmony_ci    "hisysevent:libhisysevent",
67049e185fSopenharmony_ci    "hitrace:hitrace_meter",
68049e185fSopenharmony_ci    "hitrace:libhitracechain",
69049e185fSopenharmony_ci    "init:libbegetutil",
70049e185fSopenharmony_ci    "ipc:ipc_single",
71049e185fSopenharmony_ci    "libxml2:libxml2",
72049e185fSopenharmony_ci    "media_foundation:media_foundation",
73049e185fSopenharmony_ci    "qos_manager:qos",
74049e185fSopenharmony_ci    "samgr:samgr_proxy",
75049e185fSopenharmony_ci  ]
76049e185fSopenharmony_ci
77049e185fSopenharmony_ci  subsystem_name = "multimedia"
78049e185fSopenharmony_ci  part_name = "player_framework"
79049e185fSopenharmony_ci}
80