150a07fd2Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
250a07fd2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
350a07fd2Sopenharmony_ci# you may not use this file except in compliance with the License.
450a07fd2Sopenharmony_ci# You may obtain a copy of the License at
550a07fd2Sopenharmony_ci#
650a07fd2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
750a07fd2Sopenharmony_ci#
850a07fd2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
950a07fd2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1050a07fd2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1150a07fd2Sopenharmony_ci# See the License for the specific language governing permissions and
1250a07fd2Sopenharmony_ci# limitations under the License.
1350a07fd2Sopenharmony_ci
1450a07fd2Sopenharmony_ciimport("//build/ohos.gni")
1550a07fd2Sopenharmony_ciimport("../../distributedaudio.gni")
1650a07fd2Sopenharmony_ci
1750a07fd2Sopenharmony_ciohos_executable("audio_distributed_test") {
1850a07fd2Sopenharmony_ci  sanitize = {
1950a07fd2Sopenharmony_ci    cfi = true
2050a07fd2Sopenharmony_ci    cfi_cross_dso = true
2150a07fd2Sopenharmony_ci    debug = false
2250a07fd2Sopenharmony_ci  }
2350a07fd2Sopenharmony_ci
2450a07fd2Sopenharmony_ci  include_dirs = [
2550a07fd2Sopenharmony_ci    "./include",
2650a07fd2Sopenharmony_ci    "${common_path}/include",
2750a07fd2Sopenharmony_ci  ]
2850a07fd2Sopenharmony_ci
2950a07fd2Sopenharmony_ci  sources = [ "distributedaudiotest.cpp" ]
3050a07fd2Sopenharmony_ci
3150a07fd2Sopenharmony_ci  deps = [ "${services_path}/common:distributed_audio_utils" ]
3250a07fd2Sopenharmony_ci
3350a07fd2Sopenharmony_ci  external_deps = [
3450a07fd2Sopenharmony_ci    "cJSON:cjson",
3550a07fd2Sopenharmony_ci    "c_utils:utils",
3650a07fd2Sopenharmony_ci    "distributed_hardware_fwk:distributedhardwareutils",
3750a07fd2Sopenharmony_ci    "drivers_interface_distributed_audio:libdaudio_proxy_1.0",
3850a07fd2Sopenharmony_ci    "hdf_core:libhdf_utils",
3950a07fd2Sopenharmony_ci    "hilog:libhilog",
4050a07fd2Sopenharmony_ci  ]
4150a07fd2Sopenharmony_ci
4250a07fd2Sopenharmony_ci  defines = [
4350a07fd2Sopenharmony_ci    "DH_LOG_TAG=\"daudioTest\"",
4450a07fd2Sopenharmony_ci    "HI_LOG_ENABLE",
4550a07fd2Sopenharmony_ci    "LOG_DOMAIN=0xD004130",
4650a07fd2Sopenharmony_ci  ]
4750a07fd2Sopenharmony_ci
4850a07fd2Sopenharmony_ci  install_enable = false
4950a07fd2Sopenharmony_ci  subsystem_name = "distributedhardware"
5050a07fd2Sopenharmony_ci  part_name = "distributed_audio"
5150a07fd2Sopenharmony_ci}
52