• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-2023 Huawei Device Co., Ltd. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without modification,
4# are permitted provided that the following conditions are met:
5#
6# 1. Redistributions of source code must retain the above copyright notice, this list of
7#    conditions and the following disclaimer.
8#
9# 2. Redistributions in binary form must reproduce the above copyright notice, this list
10#    of conditions and the following disclaimer in the documentation and/or other materials
11#    provided with the distribution.
12#
13# 3. Neither the name of the copyright holder nor the names of its contributors may be used
14#    to endorse or promote products derived from this software without specific prior written
15#    permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29import("hdf.gni")
30
31HDF_ADAPTERS_PATH = "./../../../interfaces/inner_api"
32HDF_FRAMEWORKS_PATH = "./../../../framework"
33module_switch = defined(LOSCFG_DRIVERS_HDF)
34module_name = "hdf"
35hdf_driver(module_name) {
36  sources = [
37    "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/src/hdf_vnode_adapter.c",
38    "$HDF_FRAMEWORKS_PATH/core/common/src/buildin_config_entry.c",
39    "$HDF_FRAMEWORKS_PATH/core/common/src/devlite_object_config.c",
40    "$HDF_FRAMEWORKS_PATH/core/common/src/devmgr_service_start.c",
41    "$HDF_FRAMEWORKS_PATH/core/common/src/hdf_attribute.c",
42    "$HDF_FRAMEWORKS_PATH/core/common/src/hdf_device_node_ext.c",
43    "$HDF_FRAMEWORKS_PATH/core/host/src/devhost_service.c",
44    "$HDF_FRAMEWORKS_PATH/core/host/src/devmgr_service_clnt.c",
45    "$HDF_FRAMEWORKS_PATH/core/host/src/devsvc_manager_clnt.c",
46    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device.c",
47    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_node.c",
48    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_object.c",
49    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_device_token.c",
50    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_driver_loader.c",
51    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_observer_record.c",
52    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_power_manager.c",
53    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_service_observer.c",
54    "$HDF_FRAMEWORKS_PATH/core/host/src/hdf_service_subscriber.c",
55    "$HDF_FRAMEWORKS_PATH/core/host/src/power_state_token.c",
56    "$HDF_FRAMEWORKS_PATH/core/manager/src/devhost_service_clnt.c",
57    "$HDF_FRAMEWORKS_PATH/core/manager/src/device_token_clnt.c",
58    "$HDF_FRAMEWORKS_PATH/core/manager/src/devmgr_service.c",
59    "$HDF_FRAMEWORKS_PATH/core/manager/src/devsvc_manager.c",
60    "$HDF_FRAMEWORKS_PATH/core/manager/src/devsvc_manager_ext.c",
61    "$HDF_FRAMEWORKS_PATH/core/manager/src/driver_manager.c",
62    "$HDF_FRAMEWORKS_PATH/core/manager/src/hdf_driver_installer.c",
63    "$HDF_FRAMEWORKS_PATH/core/manager/src/hdf_host_info.c",
64    "$HDF_FRAMEWORKS_PATH/core/manager/src/power_state_token_clnt.c",
65    "$HDF_FRAMEWORKS_PATH/core/manager/src/servstat_listener_holder.c",
66    "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_device_info.c",
67    "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_io_service.c",
68    "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_object_manager.c",
69    "$HDF_FRAMEWORKS_PATH/core/shared/src/hdf_service_record.c",
70    "$HDF_FRAMEWORKS_PATH/core/shared/src/service_status.c",
71    "$HDF_FRAMEWORKS_PATH/core/shared/src/svcmgr_ioservice.c",
72    "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/device_resource_if.c",
73    "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_blob_if.c",
74    "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_buildin_parser.c",
75    "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_generate_tree.c",
76    "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_parser.c",
77    "$HDF_FRAMEWORKS_PATH/utils/src/hcs_parser/hcs_tree_if.c",
78    "$HDF_FRAMEWORKS_PATH/utils/src/hdf_cstring.c",
79    "$HDF_FRAMEWORKS_PATH/utils/src/hdf_map.c",
80    "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sbuf.c",
81    "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sbuf_impl_raw.c",
82    "$HDF_FRAMEWORKS_PATH/utils/src/hdf_slist.c",
83    "$HDF_FRAMEWORKS_PATH/utils/src/hdf_sref.c",
84    "$HDF_FRAMEWORKS_PATH/utils/src/hdf_task_queue.c",
85  ]
86}
87
88config("hdf_config") {
89  include_dirs = [
90    "$HDF_FRAMEWORKS_PATH/include",
91    "$HDF_FRAMEWORKS_PATH/include/osal",
92    "$HDF_FRAMEWORKS_PATH/include/utils",
93    "$HDF_FRAMEWORKS_PATH/utils/include",
94    "$HDF_FRAMEWORKS_PATH/include/platform",
95    "$HDF_FRAMEWORKS_PATH/include/core",
96    "$HDF_ADAPTERS_PATH/core",
97    "$HDF_ADAPTERS_PATH/utils",
98    "$HDF_ADAPTERS_PATH/osal/shared",
99    "$HDF_ADAPTERS_PATH/host/shared",
100    "$HDF_FRAMEWORKS_PATH/include/net",
101    "$HDF_FRAMEWORKS_PATH/include/wifi",
102    "$HDF_FRAMEWORKS_PATH/core/host/include",
103    "$HDF_FRAMEWORKS_PATH/core/manager/include",
104    "$HDF_FRAMEWORKS_PATH/core/shared/include",
105    "$HDF_FRAMEWORKS_PATH/core/common/include/manager",
106    "$HDF_FRAMEWORKS_PATH/core/common/include/host",
107    "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/include",
108    "$HDF_FRAMEWORKS_PATH/core/adapter/syscall/include",
109  ]
110}
111
112module_group("liteos") {
113  modules = [
114    "manager",
115    "model",
116    "network",
117    "osal",
118    "platform",
119    "test",
120  ]
121  deps = [ ":$module_name" ]
122  configs = [ ":hdf_config" ]
123}
124