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("../../../distributed_av_transport.gni")
16
17module_out_path = "distributed_hardware_fwk/av_sync_utils_test"
18
19ohos_unittest("AvSyncUtilsTest") {
20  module_out_path = module_out_path
21
22  include_dirs = [
23    "${common_path}/include",
24    "${plugin_path}/core",
25    "${plugin_path}/interface",
26    "${output_controller_path}/include",
27    "${plugin_path}/interface",
28  ]
29
30  sources = [ "av_sync_utils_test.cpp" ]
31
32  deps = [
33    "${dh_fwk_sdk_path}:libdhfwk_sdk",
34    "${dh_fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr",
35  ]
36
37  if (histreamer_compile_part) {
38    external_deps = [
39      "media_foundation:histreamer_base",
40      "media_foundation:histreamer_codec_filters",
41      "media_foundation:histreamer_ffmpeg_convert",
42      "media_foundation:histreamer_plugin_base",
43    ]
44  }
45
46  external_deps += [
47    "bounds_checking_function:libsec_shared",
48    "cJSON:cjson",
49    "c_utils:utils",
50    "ipc:ipc_core",
51  ]
52
53  cflags = [
54    "-O2",
55    "-fPIC",
56    "-Wall",
57    "-fexceptions",
58    "-Dprivate = public",
59    "-Dprotected = public",
60  ]
61
62  defines = [
63    "HI_LOG_ENABLE",
64    "DH_LOG_TAG=\"av_sync_utils_test\"",
65    "LOG_DOMAIN=0xD004101",
66  ]
67
68  cflags_cc = cflags
69}
70
71group("av_sync_utils_test") {
72  testonly = true
73  deps = [ ":AvSyncUtilsTest" ]
74}
75