1c1d0c72aSopenharmony_ci# Copyright (c) 2020-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_ADAPTERS_PATH = "./../../../interfaces/inner_api" 32c1d0c72aSopenharmony_ciHDF_FRAMEWORKS_PATH = "./../../../framework" 33c1d0c72aSopenharmony_cimodule_switch = defined(LOSCFG_DRIVERS_HDF) 34c1d0c72aSopenharmony_cimodule_name = "hdf" 35c1d0c72aSopenharmony_cihdf_driver(module_name) { 36c1d0c72aSopenharmony_ci sources = [ 37c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/src/hdf_vnode_adapter.c", 38c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/src/buildin_config_entry.c", 39c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/src/devlite_object_config.c", 40c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/src/devmgr_service_start.c", 41c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/src/hdf_attribute.c", 42c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/src/hdf_device_node_ext.c", 43c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/devhost_service.c", 44c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/devmgr_service_clnt.c", 45c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/devsvc_manager_clnt.c", 46c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device.c", 47c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_node.c", 48c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_object.c", 49c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_token.c", 50c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_driver_loader.c", 51c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_observer_record.c", 52c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_power_manager.c", 53c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_service_observer.c", 54c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_service_subscriber.c", 55c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/src/power_state_token.c", 56c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/devhost_service_clnt.c", 57c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/device_token_clnt.c", 58c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/devmgr_service.c", 59c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/devsvc_manager.c", 60c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/devsvc_manager_ext.c", 61c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/driver_manager.c", 62c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/hdf_driver_installer.c", 63c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/hdf_host_info.c", 64c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/power_state_token_clnt.c", 65c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/src/servstat_listener_holder.c", 66c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_device_info.c", 67c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_io_service.c", 68c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_object_manager.c", 69c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_service_record.c", 70c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/src/service_status.c", 71c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/src/svcmgr_ioservice.c", 72c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/device_resource_if.c", 73c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_blob_if.c", 74c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_buildin_parser.c", 75c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_generate_tree.c", 76c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_parser.c", 77c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_tree_if.c", 78c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hdf_cstring.c", 79c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hdf_map.c", 80c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sbuf.c", 81c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sbuf_impl_raw.c", 82c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hdf_slist.c", 83c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sref.c", 84c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/src/hdf_task_queue.c", 85c1d0c72aSopenharmony_ci ] 86c1d0c72aSopenharmony_ci} 87c1d0c72aSopenharmony_ci 88c1d0c72aSopenharmony_ciconfig("hdf_config") { 89c1d0c72aSopenharmony_ci include_dirs = [ 90c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include", 91c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/osal", 92c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/utils", 93c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/utils/include", 94c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/platform", 95c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/core", 96c1d0c72aSopenharmony_ci "$HDF_ADAPTERS_PATH/core", 97c1d0c72aSopenharmony_ci "$HDF_ADAPTERS_PATH/utils", 98c1d0c72aSopenharmony_ci "$HDF_ADAPTERS_PATH/osal/shared", 99c1d0c72aSopenharmony_ci "$HDF_ADAPTERS_PATH/host/shared", 100c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/net", 101c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/include/wifi", 102c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/host/include", 103c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/manager/include", 104c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/shared/include", 105c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/include/manager", 106c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/common/include/host", 107c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/include", 108c1d0c72aSopenharmony_ci "$HDF_FRAMEWORKS_PATH/core/adapter/syscall/include", 109c1d0c72aSopenharmony_ci ] 110c1d0c72aSopenharmony_ci} 111c1d0c72aSopenharmony_ci 112c1d0c72aSopenharmony_cimodule_group("liteos") { 113c1d0c72aSopenharmony_ci modules = [ 114c1d0c72aSopenharmony_ci "manager", 115c1d0c72aSopenharmony_ci "model", 116c1d0c72aSopenharmony_ci "network", 117c1d0c72aSopenharmony_ci "osal", 118c1d0c72aSopenharmony_ci "platform", 119c1d0c72aSopenharmony_ci "test", 120c1d0c72aSopenharmony_ci ] 121c1d0c72aSopenharmony_ci deps = [ ":$module_name" ] 122c1d0c72aSopenharmony_ci configs = [ ":hdf_config" ] 123c1d0c72aSopenharmony_ci} 124