10a7ce71fSopenharmony_ci# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
20a7ce71fSopenharmony_ci# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
30a7ce71fSopenharmony_ci#
40a7ce71fSopenharmony_ci# Redistribution and use in source and binary forms, with or without modification,
50a7ce71fSopenharmony_ci# are permitted provided that the following conditions are met:
60a7ce71fSopenharmony_ci#
70a7ce71fSopenharmony_ci# 1. Redistributions of source code must retain the above copyright notice, this list of
80a7ce71fSopenharmony_ci#    conditions and the following disclaimer.
90a7ce71fSopenharmony_ci#
100a7ce71fSopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright notice, this list
110a7ce71fSopenharmony_ci#    of conditions and the following disclaimer in the documentation and/or other materials
120a7ce71fSopenharmony_ci#    provided with the distribution.
130a7ce71fSopenharmony_ci#
140a7ce71fSopenharmony_ci# 3. Neither the name of the copyright holder nor the names of its contributors may be used
150a7ce71fSopenharmony_ci#    to endorse or promote products derived from this software without specific prior written
160a7ce71fSopenharmony_ci#    permission.
170a7ce71fSopenharmony_ci#
180a7ce71fSopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
190a7ce71fSopenharmony_ci# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
200a7ce71fSopenharmony_ci# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
210a7ce71fSopenharmony_ci# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
220a7ce71fSopenharmony_ci# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
230a7ce71fSopenharmony_ci# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
240a7ce71fSopenharmony_ci# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
250a7ce71fSopenharmony_ci# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
260a7ce71fSopenharmony_ci# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
270a7ce71fSopenharmony_ci# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
280a7ce71fSopenharmony_ci# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
290a7ce71fSopenharmony_ci
300a7ce71fSopenharmony_ciimport("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
310a7ce71fSopenharmony_ci
320a7ce71fSopenharmony_cimodule_switch = defined(LOSCFG_DRIVERS_HDF) && !defined(LOSCFG_DRIVERS_HDF_TEST)
330a7ce71fSopenharmony_cimodule_name = "libhdf_config"
340a7ce71fSopenharmony_cihdf_driver(module_name) {
350a7ce71fSopenharmony_ci  hcs_sources = [ "hdf.hcs" ]
360a7ce71fSopenharmony_ci}
370a7ce71fSopenharmony_ci
380a7ce71fSopenharmony_cigroup("hdf_config") {
390a7ce71fSopenharmony_ci  public_deps = [ ":$module_name" ]
400a7ce71fSopenharmony_ci  deps = [
410a7ce71fSopenharmony_ci    "hdf_test",
420a7ce71fSopenharmony_ci    "hdf_test/hcs_macro_test",
430a7ce71fSopenharmony_ci  ]
440a7ce71fSopenharmony_ci}
45