1c1d0c72aSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. All rights reserved. 2c1d0c72aSopenharmony_ci# 3c1d0c72aSopenharmony_ci# Redistribution and use in source and binary forms, with or without modification, 4c1d0c72aSopenharmony_ci# are permitted provided that the following conditions are met: 5c1d0c72aSopenharmony_ci# 6c1d0c72aSopenharmony_ci# 1. Redistributions of source code must retain the above copyright notice, this list of 7c1d0c72aSopenharmony_ci# conditions and the following disclaimer. 8c1d0c72aSopenharmony_ci# 9c1d0c72aSopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright notice, this list 10c1d0c72aSopenharmony_ci# of conditions and the following disclaimer in the documentation and/or other materials 11c1d0c72aSopenharmony_ci# provided with the distribution. 12c1d0c72aSopenharmony_ci# 13c1d0c72aSopenharmony_ci# 3. Neither the name of the copyright holder nor the names of its contributors may be used 14c1d0c72aSopenharmony_ci# to endorse or promote products derived from this software without specific prior written 15c1d0c72aSopenharmony_ci# permission. 16c1d0c72aSopenharmony_ci# 17c1d0c72aSopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18c1d0c72aSopenharmony_ci# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 19c1d0c72aSopenharmony_ci# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20c1d0c72aSopenharmony_ci# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 21c1d0c72aSopenharmony_ci# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22c1d0c72aSopenharmony_ci# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23c1d0c72aSopenharmony_ci# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24c1d0c72aSopenharmony_ci# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25c1d0c72aSopenharmony_ci# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26c1d0c72aSopenharmony_ci# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27c1d0c72aSopenharmony_ci# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28c1d0c72aSopenharmony_ci 29c1d0c72aSopenharmony_ciimport("hdf.gni") 30c1d0c72aSopenharmony_ci 31c1d0c72aSopenharmony_ciHDF_FRAMEWORKS_PATH = "./../../../framework" 32c1d0c72aSopenharmony_ciHDF_INTERFACE_PATH = ".../../../interfaces" 33c1d0c72aSopenharmony_ciHDF_ADAPTER_PATH = ".../../../adapter" 34c1d0c72aSopenharmony_ci 35c1d0c72aSopenharmony_cihdf_driver("hdf_lite") { 36c1d0c72aSopenharmony_ci deps = [ 37c1d0c72aSopenharmony_ci "core", 38c1d0c72aSopenharmony_ci "osal", 39c1d0c72aSopenharmony_ci "platform", 40c1d0c72aSopenharmony_ci HDF_ADAPTER_PLATFORM_PATH, 41c1d0c72aSopenharmony_ci ] 42c1d0c72aSopenharmony_ci if (defined(LOSCFG_DRIVERS_HDF_TESTS_ENABLE)) { 43c1d0c72aSopenharmony_ci deps += [ "test" ] 44c1d0c72aSopenharmony_ci } 45c1d0c72aSopenharmony_ci} 46c1d0c72aSopenharmony_ci 47c1d0c72aSopenharmony_ciconfig("public") { 48c1d0c72aSopenharmony_ci configs = [ 49c1d0c72aSopenharmony_ci "core:public", 50c1d0c72aSopenharmony_ci "osal:public", 51c1d0c72aSopenharmony_ci "platform:public", 52c1d0c72aSopenharmony_ci ] 53c1d0c72aSopenharmony_ci} 54c1d0c72aSopenharmony_ci 55c1d0c72aSopenharmony_ciconfig("hdf_config") { 56c1d0c72aSopenharmony_ci configs = [ ":public" ] 57c1d0c72aSopenharmony_ci include_dirs = [ 58c1d0c72aSopenharmony_ci "//utils/native/lite/include", 59c1d0c72aSopenharmony_ci "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 60c1d0c72aSopenharmony_ci "osal/include", 61c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include", 62c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/osal", 63c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/utils", 64c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/include", 65c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/platform", 66c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/core", 67c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/support/platform/include", 68c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/support/platform/include/common", 69c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/support/platform/include/fwk", 70c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/include", 71c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/include", 72c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/include", 73c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/include/manager", 74c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/include/host", 75c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/include", 76c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/adapter/syscall/include", 77c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/test/unittest/osal", 78c1d0c72aSopenharmony_ci "$HDF_ADAPTER_PATH/khdf/uniproton/osal/include", 79c1d0c72aSopenharmony_ci "$HDF_ADAPTER_PATH/khdf/uniproton/test/sample_driver/include", 80c1d0c72aSopenharmony_ci "$HDF_ADAPTER_PATH/uhdf2/include/host", 81c1d0c72aSopenharmony_ci "$HDF_INTERFACE_PATH/inner_api/core", 82c1d0c72aSopenharmony_ci "$HDF_INTERFACE_PATH/inner_api/utils", 83c1d0c72aSopenharmony_ci "$HDF_INTERFACE_PATH/inner_api/osal/shared", 84c1d0c72aSopenharmony_ci "$HDF_INTERFACE_PATH/inner_api/host/shared", 85c1d0c72aSopenharmony_ci ] 86c1d0c72aSopenharmony_ci} 87