# Copyright (c) 2020-2023 Huawei Device Co., Ltd. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of # conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright notice, this list # of conditions and the following disclaimer in the documentation and/or other materials # provided with the distribution. # # 3. Neither the name of the copyright holder nor the names of its contributors may be used # to endorse or promote products derived from this software without specific prior written # permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import("hdf.gni") HDF_ADAPTERS_PATH = "./../../../interfaces/inner_api" HDF_FRAMEWORKS_PATH = "./../../../framework" module_switch = defined(LOSCFG_DRIVERS_HDF) module_name = "hdf" hdf_driver(module_name) { sources = [ "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/src/hdf_vnode_adapter.c", "$HDF_FRAMEWORKS_PATH/core/common/src/buildin_config_entry.c", "$HDF_FRAMEWORKS_PATH/core/common/src/devlite_object_config.c", "$HDF_FRAMEWORKS_PATH/core/common/src/devmgr_service_start.c", "$HDF_FRAMEWORKS_PATH/core/common/src/hdf_attribute.c", "$HDF_FRAMEWORKS_PATH/core/common/src/hdf_device_node_ext.c", "$HDF_FRAMEWORKS_PATH/core/host/src/devhost_service.c", "$HDF_FRAMEWORKS_PATH/core/host/src/devmgr_service_clnt.c", "$HDF_FRAMEWORKS_PATH/core/host/src/devsvc_manager_clnt.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_node.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_object.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_token.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_driver_loader.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_observer_record.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_power_manager.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_service_observer.c", "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_service_subscriber.c", "$HDF_FRAMEWORKS_PATH/core/host/src/power_state_token.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/devhost_service_clnt.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/device_token_clnt.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/devmgr_service.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/devsvc_manager.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/devsvc_manager_ext.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/driver_manager.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/hdf_driver_installer.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/hdf_host_info.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/power_state_token_clnt.c", "$HDF_FRAMEWORKS_PATH/core/manager/src/servstat_listener_holder.c", "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_device_info.c", "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_io_service.c", "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_object_manager.c", "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_service_record.c", "$HDF_FRAMEWORKS_PATH/core/shared/src/service_status.c", "$HDF_FRAMEWORKS_PATH/core/shared/src/svcmgr_ioservice.c", "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/device_resource_if.c", "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_blob_if.c", "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_buildin_parser.c", "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_generate_tree.c", "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_parser.c", "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_tree_if.c", "$HDF_FRAMEWORKS_PATH/utils/src/hdf_cstring.c", "$HDF_FRAMEWORKS_PATH/utils/src/hdf_map.c", "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sbuf.c", "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sbuf_impl_raw.c", "$HDF_FRAMEWORKS_PATH/utils/src/hdf_slist.c", "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sref.c", "$HDF_FRAMEWORKS_PATH/utils/src/hdf_task_queue.c", ] } config("hdf_config") { include_dirs = [ "$HDF_FRAMEWORKS_PATH/include", "$HDF_FRAMEWORKS_PATH/include/osal", "$HDF_FRAMEWORKS_PATH/include/utils", "$HDF_FRAMEWORKS_PATH/utils/include", "$HDF_FRAMEWORKS_PATH/include/platform", "$HDF_FRAMEWORKS_PATH/include/core", "$HDF_ADAPTERS_PATH/core", "$HDF_ADAPTERS_PATH/utils", "$HDF_ADAPTERS_PATH/osal/shared", "$HDF_ADAPTERS_PATH/host/shared", "$HDF_FRAMEWORKS_PATH/include/net", "$HDF_FRAMEWORKS_PATH/include/wifi", "$HDF_FRAMEWORKS_PATH/core/host/include", "$HDF_FRAMEWORKS_PATH/core/manager/include", "$HDF_FRAMEWORKS_PATH/core/shared/include", "$HDF_FRAMEWORKS_PATH/core/common/include/manager", "$HDF_FRAMEWORKS_PATH/core/common/include/host", "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/include", "$HDF_FRAMEWORKS_PATH/core/adapter/syscall/include", ] } module_group("liteos") { modules = [ "manager", "model", "network", "osal", "platform", "test", ] deps = [ ":$module_name" ] configs = [ ":hdf_config" ] }