# Copyright (c) 2021-2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

distributedhardwarefwk_path =
    "//foundation/distributedhardware/distributed_hardware_fwk"

common_path = "${distributedhardwarefwk_path}/common"

utils_path = "${distributedhardwarefwk_path}/utils"

services_path = "${distributedhardwarefwk_path}/services"

innerkits_path = "${distributedhardwarefwk_path}/interfaces/inner_kits"

av_trans_path = "${distributedhardwarefwk_path}/av_transport"

av_center_svc_path = "${av_trans_path}/av_trans_control_center/services"

av_center_kits_path = "${av_trans_path}/av_trans_control_center/inner_kits"

fuzz_test_output_path = "distributed_hardware_fwk/distributed_hardware_fwk/dh_fwk_fuzz"

fuzz_test_path = "${distributedhardwarefwk_path}/services/distributedhardwarefwkservice/test/fuzztest"

unittest_output_path = "distributed_hardware_fwk/distributed_hardware_fwk/dh_fwk_unittest"

build_flags = [ "-Werror" ]

declare_args() {
  distributed_hardware_fwk_low_latency = false
}

if (!defined(global_parts_info) ||
      defined(global_parts_info.account_os_account)) {
    dhfwk_os_account = true
  } else {
    dhfwk_os_account = false
  }