• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 Beken Corporation
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/lite/config/component/lite_component.gni")
15import("//build/lite/config/subsystem/lite_subsystem.gni")
16import("${board_adapter_dir}/hals/sdk_dir.gni")
17
18declare_args() {
19  HDF_FRAMEWORKS_PATH = "//drivers/hdf_core/framework"
20}
21
22static_library("sdk_adapter") {
23  sources = [ "sdk_adapter.c" ]
24  include_dirs = [
25    "include",
26    "//kernel/liteos_m/kal/cmsis",
27  ]
28  include_dirs += [
29    "$HDF_FRAMEWORKS_PATH/include",
30    "$HDF_FRAMEWORKS_PATH/include/osal",
31    "$HDF_FRAMEWORKS_PATH/include/utils",
32    "$HDF_FRAMEWORKS_PATH/utils/include",
33    "$HDF_FRAMEWORKS_PATH/include/platform",
34    "$HDF_FRAMEWORKS_PATH/include/core",
35    "$HDF_FRAMEWORKS_PATH/include/net",
36    "$HDF_FRAMEWORKS_PATH/include/wifi",
37    "$HDF_FRAMEWORKS_PATH/model/network/common/netdevice",
38    "$HDF_FRAMEWORKS_PATH/ability/sbuf/include",
39    "$HDF_FRAMEWORKS_PATH/support/platform/include",
40    "$HDF_FRAMEWORKS_PATH/core/host/include",
41    "$HDF_FRAMEWORKS_PATH/core/manager/include",
42    "$HDF_FRAMEWORKS_PATH/core/shared/include",
43    "$HDF_FRAMEWORKS_PATH/core/common/include/manager",
44    "$HDF_FRAMEWORKS_PATH/core/common/include/host",
45    "$HDF_FRAMEWORKS_PATH/core/adapter/vnode/include",
46    "$HDF_FRAMEWORKS_PATH/core/adapter/syscall/include",
47
48    "$HDF_FRAMEWORKS_PATH/include/platform",
49    "$HDF_FRAMEWORKS_PATH/support/platform/include",
50    "$HDF_FRAMEWORKS_PATH/support/platform/include/fwk",
51    "//drivers/hdf_core/adapter/khdf/liteos_m/osal/include",
52  ]
53  include_dirs += bk_hal_include_dirs
54  include_dirs += [
55    "//utils/native/lite/include",
56    "//base/iot_hardware/peripheral/interfaces/kits",
57  ]
58}
59
60lite_component("adapter") {
61  features = [ ":sdk_adapter" ]
62
63  deps = [
64    "//base/hiviewdfx/hievent_lite:hievent_lite",
65
66    # "//foundation/communication/bluetooth/services/bluetooth:bluetooth",
67    "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite",
68    "//base/startup/syspara_lite/frameworks/parameter/src:sysparam",
69    "//base/update/sys_installer_lite/frameworks:sys_installer_lite",
70    "//foundation/communication/wifi_lite:wifi",
71    "//foundation/systemabilitymgr/samgr_lite/communication/broadcast:broadcast",
72    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
73    "//kernel/liteos_m/kal:kal",
74  ]
75}
76