• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024 HiHope Open Source Organization .
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")
15
16declare_args() {
17  build_ws63_sdk_open = false
18  enable_hos_vendor_wifiiot_xts = false
19}
20
21group("nearllink_sdk") {
22  deps = [ ":sdk" ]
23}
24
25build_ext_component("run_sdk_build") {
26  exec_path = rebase_path(".", root_build_dir)
27  outdir = rebase_path(root_out_dir)
28  command = "bash hm_build.sh $outdir $build_ws63_sdk_open"
29
30  #  command = "python3 build.py -c ws63-liteos-app"
31  #  if (host_os == "win") {
32  #    command = "bash hm_build.sh $outdir win"
33  #  } else {
34  #    command = "bash hm_build.sh $outdir linux"
35  #  }
36  deps = [
37    ":sdk",
38    "//base/security/device_auth/frameworks/deviceauth_lite:hichainsdk",
39    "//build/lite:ohos",
40  ]
41  if (enable_hos_vendor_wifiiot_xts) {
42    deps += [ "//build/lite/config/subsystem/xts:xts" ]
43  }
44}
45
46lite_component("sdk") {
47  features = []
48
49  deps = [
50    "//build/lite/config/component/cJSON:cjson_static",
51    "//device/soc/hisilicon/ws63v100/adapter/hals/communication/ble_lite",
52    "//device/soc/hisilicon/ws63v100/adapter/hals/communication/sle_lite",
53    "//device/soc/hisilicon/ws63v100/adapter/hals/communication/wifi_lite/wifiservice",
54
55    #   "//device/soc/hisilicon/ws63v100/adapter/kal",
56  ]
57}
58