117fd14ceSopenharmony_ci# Copyright (C) 2021-2024 Huawei Device Co., Ltd.
217fd14ceSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
317fd14ceSopenharmony_ci# you may not use this file except in compliance with the License.
417fd14ceSopenharmony_ci# You may obtain a copy of the License at
517fd14ceSopenharmony_ci#
617fd14ceSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
717fd14ceSopenharmony_ci#
817fd14ceSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
917fd14ceSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1017fd14ceSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1117fd14ceSopenharmony_ci# See the License for the specific language governing permissions and
1217fd14ceSopenharmony_ci# limitations under the License.
1317fd14ceSopenharmony_ci
1417fd14ceSopenharmony_ciimport("//base/security/device_auth/deps_adapter/deviceauth_hals.gni")
1517fd14ceSopenharmony_ciimport("//build/ohos.gni")
1617fd14ceSopenharmony_ciimport("deviceauth.gni")
1717fd14ceSopenharmony_ci
1817fd14ceSopenharmony_ciconfig("deviceauth_config") {
1917fd14ceSopenharmony_ci  include_dirs = [ "//base/security/device_auth/interfaces/inner_api" ]
2017fd14ceSopenharmony_ci}
2117fd14ceSopenharmony_ciinclude_dirs = inc_path + hals_inc_path
2217fd14ceSopenharmony_ciif (os_level == "mini" || os_level == "small") {
2317fd14ceSopenharmony_ci  static_library("deviceauth") {
2417fd14ceSopenharmony_ci    public_configs = [ ":deviceauth_config" ]
2517fd14ceSopenharmony_ci    include_dirs += [
2617fd14ceSopenharmony_ci      "//third_party/cJSON",
2717fd14ceSopenharmony_ci      "//commonlibrary/utils_lite/include",
2817fd14ceSopenharmony_ci      "//third_party/bounds_checking_function/include",
2917fd14ceSopenharmony_ci      "//foundation/communication/dsoftbus/interfaces/kits/common",
3017fd14ceSopenharmony_ci      "//foundation/communication/dsoftbus/interfaces/kits/transport",
3117fd14ceSopenharmony_ci      "//foundation/communication/dsoftbus/interfaces/inner_kits/transport",
3217fd14ceSopenharmony_ci      "${dev_frameworks_path}/inc/hiview_adapter",
3317fd14ceSopenharmony_ci    ]
3417fd14ceSopenharmony_ci    sources = deviceauth_files
3517fd14ceSopenharmony_ci    defines = [ "HILOG_ENABLE" ]
3617fd14ceSopenharmony_ci    defines += deviceauth_defines
3717fd14ceSopenharmony_ci
3817fd14ceSopenharmony_ci    sources += identity_manager_files
3917fd14ceSopenharmony_ci    include_dirs += identity_manager_inc
4017fd14ceSopenharmony_ci
4117fd14ceSopenharmony_ci    deps = [
4217fd14ceSopenharmony_ci      "${deps_adapter_path}:${hal_module_name}",
4317fd14ceSopenharmony_ci      "//build/lite/config/component/cJSON:cjson_shared",
4417fd14ceSopenharmony_ci      "//commonlibrary/utils_lite:utils",
4517fd14ceSopenharmony_ci    ]
4617fd14ceSopenharmony_ci    if (device_auth_enable_soft_bus_channel) {
4717fd14ceSopenharmony_ci      deps += [ "//foundation/communication/dsoftbus/sdk:softbus_client" ]
4817fd14ceSopenharmony_ci    }
4917fd14ceSopenharmony_ci    if (enable_extend_plugin) {
5017fd14ceSopenharmony_ci      defines += [ "DEV_AUTH_PLUGIN_ENABLE" ]
5117fd14ceSopenharmony_ci      if (os_level == "mini") {
5217fd14ceSopenharmony_ci        sources += [
5317fd14ceSopenharmony_ci          "${dev_frameworks_path}/src/plugin_adapter/static_plugin_adapter.c",
5417fd14ceSopenharmony_ci        ]
5517fd14ceSopenharmony_ci      } else {
5617fd14ceSopenharmony_ci        sources += [
5717fd14ceSopenharmony_ci          "${dev_frameworks_path}/src/plugin_adapter/dynamic_plugin_adapter.c",
5817fd14ceSopenharmony_ci          "${dev_frameworks_path}/src/plugin_adapter/ext_part/account_lifecycle_plugin_proxy.c",
5917fd14ceSopenharmony_ci          "${dev_frameworks_path}/src/plugin_adapter/ext_part/ext_part_proxy.c",
6017fd14ceSopenharmony_ci        ]
6117fd14ceSopenharmony_ci      }
6217fd14ceSopenharmony_ci    }
6317fd14ceSopenharmony_ci    if (board_toolchain_type == "iccarm" && os_level == "mini") {
6417fd14ceSopenharmony_ci      cflags = [
6517fd14ceSopenharmony_ci        "--diag_suppress",
6617fd14ceSopenharmony_ci        "Pe546,Pe223,Pe111,Pe188",
6717fd14ceSopenharmony_ci      ]
6817fd14ceSopenharmony_ci    } else {
6917fd14ceSopenharmony_ci      cflags = build_flags
7017fd14ceSopenharmony_ci    }
7117fd14ceSopenharmony_ci    cflags += [
7217fd14ceSopenharmony_ci      "-DDEV_AUTH_WORK_THREAD_STACK_SIZE=${device_auth_hichain_thread_stack_size}",
7317fd14ceSopenharmony_ci      "-DMAX_AUTH_SESSION_COUNT=${max_auth_session_count}",
7417fd14ceSopenharmony_ci    ]
7517fd14ceSopenharmony_ci    if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") {
7617fd14ceSopenharmony_ci      include_dirs +=
7717fd14ceSopenharmony_ci          [ "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog" ]
7817fd14ceSopenharmony_ci      deps += [
7917fd14ceSopenharmony_ci        "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
8017fd14ceSopenharmony_ci        "//third_party/bounds_checking_function:libsec_shared",
8117fd14ceSopenharmony_ci      ]
8217fd14ceSopenharmony_ci    } else {
8317fd14ceSopenharmony_ci      include_dirs +=
8417fd14ceSopenharmony_ci          [ "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite" ]
8517fd14ceSopenharmony_ci      deps += [ "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" ]
8617fd14ceSopenharmony_ci    }
8717fd14ceSopenharmony_ci  }
8817fd14ceSopenharmony_ci
8917fd14ceSopenharmony_ci  if (os_level == "mini") {
9017fd14ceSopenharmony_ci    group("deviceauth_sdk") {
9117fd14ceSopenharmony_ci    }
9217fd14ceSopenharmony_ci    group("deviceauth_service") {
9317fd14ceSopenharmony_ci    }
9417fd14ceSopenharmony_ci  }
9517fd14ceSopenharmony_ci
9617fd14ceSopenharmony_ci  if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") {
9717fd14ceSopenharmony_ci    executable("deviceauth_service") {
9817fd14ceSopenharmony_ci      include_dirs += [
9917fd14ceSopenharmony_ci        "//third_party/cJSON",
10017fd14ceSopenharmony_ci        "//commonlibrary/utils_lite/include",
10117fd14ceSopenharmony_ci        "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog",
10217fd14ceSopenharmony_ci        "//third_party/bounds_checking_function/include",
10317fd14ceSopenharmony_ci        "${frameworks_path}/inc/lite",
10417fd14ceSopenharmony_ci        "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
10517fd14ceSopenharmony_ci        "${dev_frameworks_path}/inc/hiview_adapter",
10617fd14ceSopenharmony_ci      ]
10717fd14ceSopenharmony_ci
10817fd14ceSopenharmony_ci      sources = deviceauth_ipc_files
10917fd14ceSopenharmony_ci      sources += [
11017fd14ceSopenharmony_ci        "${frameworks_path}/src/ipc_service.c",
11117fd14ceSopenharmony_ci        "${frameworks_path}/src/lite/ipc_service_init.c",
11217fd14ceSopenharmony_ci      ]
11317fd14ceSopenharmony_ci
11417fd14ceSopenharmony_ci      defines = [ "HILOG_ENABLE" ]
11517fd14ceSopenharmony_ci      if (ohos_kernel_type == "linux") {
11617fd14ceSopenharmony_ci        defines += [ "__LINUX__" ]
11717fd14ceSopenharmony_ci      }
11817fd14ceSopenharmony_ci      ldflags = [ "-pthread" ]
11917fd14ceSopenharmony_ci
12017fd14ceSopenharmony_ci      deps = [
12117fd14ceSopenharmony_ci        ":deviceauth",
12217fd14ceSopenharmony_ci        "${deps_adapter_path}:${hal_module_name}",
12317fd14ceSopenharmony_ci        "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
12417fd14ceSopenharmony_ci        "//build/lite/config/component/cJSON:cjson_shared",
12517fd14ceSopenharmony_ci        "//commonlibrary/utils_lite:utils",
12617fd14ceSopenharmony_ci        "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
12717fd14ceSopenharmony_ci        "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
12817fd14ceSopenharmony_ci        "//third_party/bounds_checking_function:libsec_shared",
12917fd14ceSopenharmony_ci      ]
13017fd14ceSopenharmony_ci    }
13117fd14ceSopenharmony_ci
13217fd14ceSopenharmony_ci    shared_library("deviceauth_sdk") {
13317fd14ceSopenharmony_ci      public_configs = [ ":deviceauth_config" ]
13417fd14ceSopenharmony_ci      include_dirs += [
13517fd14ceSopenharmony_ci        "//third_party/cJSON",
13617fd14ceSopenharmony_ci        "//commonlibrary/utils_lite/include",
13717fd14ceSopenharmony_ci        "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog",
13817fd14ceSopenharmony_ci        "//third_party/bounds_checking_function/include",
13917fd14ceSopenharmony_ci        "${frameworks_path}/inc/lite",
14017fd14ceSopenharmony_ci        "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
14117fd14ceSopenharmony_ci        "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
14217fd14ceSopenharmony_ci        "${dev_frameworks_path}/inc/hiview_adapter",
14317fd14ceSopenharmony_ci      ]
14417fd14ceSopenharmony_ci
14517fd14ceSopenharmony_ci      sources = deviceauth_ipc_files
14617fd14ceSopenharmony_ci      sources += [ "${frameworks_path}/src/ipc_sdk.c" ]
14717fd14ceSopenharmony_ci
14817fd14ceSopenharmony_ci      defines = [ "HILOG_ENABLE" ]
14917fd14ceSopenharmony_ci      if (ohos_kernel_type == "linux") {
15017fd14ceSopenharmony_ci        defines += [ "__LINUX__" ]
15117fd14ceSopenharmony_ci      }
15217fd14ceSopenharmony_ci      cflags = build_flags
15317fd14ceSopenharmony_ci      cflags += [ "-fPIC" ]
15417fd14ceSopenharmony_ci
15517fd14ceSopenharmony_ci      deps = [
15617fd14ceSopenharmony_ci        "${deps_adapter_path}:${hal_module_name}",
15717fd14ceSopenharmony_ci        "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
15817fd14ceSopenharmony_ci        "//commonlibrary/utils_lite:utils",
15917fd14ceSopenharmony_ci        "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
16017fd14ceSopenharmony_ci        "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
16117fd14ceSopenharmony_ci        "//third_party/bounds_checking_function:libsec_shared",
16217fd14ceSopenharmony_ci      ]
16317fd14ceSopenharmony_ci    }
16417fd14ceSopenharmony_ci  }
16517fd14ceSopenharmony_ci} else {
16617fd14ceSopenharmony_ci  ohos_static_library("deviceauth") {
16717fd14ceSopenharmony_ci    subsystem_name = "security"
16817fd14ceSopenharmony_ci    part_name = "device_auth"
16917fd14ceSopenharmony_ci    include_dirs += [
17017fd14ceSopenharmony_ci      "${frameworks_path}/inc/standard",
17117fd14ceSopenharmony_ci      "${dev_frameworks_path}/inc/hiview_adapter",
17217fd14ceSopenharmony_ci    ]
17317fd14ceSopenharmony_ci
17417fd14ceSopenharmony_ci    if (support_os_account) {
17517fd14ceSopenharmony_ci      include_dirs += [ "${dev_frameworks_path}/inc/account_subscriber" ]
17617fd14ceSopenharmony_ci      include_dirs += [ "${dev_frameworks_path}/inc/sa_subscriber" ]
17717fd14ceSopenharmony_ci    }
17817fd14ceSopenharmony_ci
17917fd14ceSopenharmony_ci    sources = deviceauth_files
18017fd14ceSopenharmony_ci    if (support_os_account) {
18117fd14ceSopenharmony_ci      sources += account_subscriber_files
18217fd14ceSopenharmony_ci      sources += sa_subscriber_files
18317fd14ceSopenharmony_ci    }
18417fd14ceSopenharmony_ci    sources += hiview_adapter_files
18517fd14ceSopenharmony_ci    defines = deviceauth_defines
18617fd14ceSopenharmony_ci    defines += [ "HILOG_ENABLE" ]
18717fd14ceSopenharmony_ci    defines += [ "DEV_AUTH_HIVIEW_ENABLE" ]
18817fd14ceSopenharmony_ci    cflags = build_flags
18917fd14ceSopenharmony_ci    cflags += [
19017fd14ceSopenharmony_ci      "-DDEV_AUTH_WORK_THREAD_STACK_SIZE=${device_auth_hichain_thread_stack_size}",
19117fd14ceSopenharmony_ci      "-DMAX_AUTH_SESSION_COUNT=${max_auth_session_count}",
19217fd14ceSopenharmony_ci    ]
19317fd14ceSopenharmony_ci    if (target_cpu == "arm") {
19417fd14ceSopenharmony_ci      cflags += [ "-DBINDER_IPC_32BIT" ]
19517fd14ceSopenharmony_ci    }
19617fd14ceSopenharmony_ci    if (enable_extend_plugin) {
19717fd14ceSopenharmony_ci      defines += [ "DEV_AUTH_PLUGIN_ENABLE" ]
19817fd14ceSopenharmony_ci      sources += [
19917fd14ceSopenharmony_ci        "${dev_frameworks_path}/src/plugin_adapter/dynamic_plugin_adapter.c",
20017fd14ceSopenharmony_ci        "${dev_frameworks_path}/src/plugin_adapter/ext_part/account_lifecycle_plugin_proxy.c",
20117fd14ceSopenharmony_ci        "${dev_frameworks_path}/src/plugin_adapter/ext_part/ext_part_proxy.c",
20217fd14ceSopenharmony_ci      ]
20317fd14ceSopenharmony_ci    }
20417fd14ceSopenharmony_ci
20517fd14ceSopenharmony_ci    sources += identity_manager_files
20617fd14ceSopenharmony_ci    include_dirs += identity_manager_inc
20717fd14ceSopenharmony_ci
20817fd14ceSopenharmony_ci    branch_protector_ret = "pac_ret"
20917fd14ceSopenharmony_ci    sanitize = {
21017fd14ceSopenharmony_ci      cfi = true
21117fd14ceSopenharmony_ci      cfi_cross_dso = true
21217fd14ceSopenharmony_ci      integer_overflow = true
21317fd14ceSopenharmony_ci      boundary_sanitize = true
21417fd14ceSopenharmony_ci      ubsan = true
21517fd14ceSopenharmony_ci      debug = false
21617fd14ceSopenharmony_ci    }
21717fd14ceSopenharmony_ci
21817fd14ceSopenharmony_ci    deps = [ "${deps_adapter_path}:${hal_module_name}" ]
21917fd14ceSopenharmony_ci
22017fd14ceSopenharmony_ci    external_deps = [
22117fd14ceSopenharmony_ci      "bounds_checking_function:libsec_shared",
22217fd14ceSopenharmony_ci      "cJSON:cjson",
22317fd14ceSopenharmony_ci      "c_utils:utils",
22417fd14ceSopenharmony_ci      "dsoftbus:softbus_client",
22517fd14ceSopenharmony_ci      "hilog:libhilog",
22617fd14ceSopenharmony_ci      "hisysevent:libhisysevent",
22717fd14ceSopenharmony_ci      "hitrace:hitrace_meter",
22817fd14ceSopenharmony_ci    ]
22917fd14ceSopenharmony_ci    if (support_os_account) {
23017fd14ceSopenharmony_ci      external_deps += [
23117fd14ceSopenharmony_ci        "ability_base:want",
23217fd14ceSopenharmony_ci        "common_event_service:cesfwk_innerkits",
23317fd14ceSopenharmony_ci        "ipc:ipc_single",
23417fd14ceSopenharmony_ci        "json:nlohmann_json_static",
23517fd14ceSopenharmony_ci        "os_account:os_account_innerkits",
23617fd14ceSopenharmony_ci        "samgr:samgr_proxy",
23717fd14ceSopenharmony_ci      ]
23817fd14ceSopenharmony_ci    }
23917fd14ceSopenharmony_ci  }
24017fd14ceSopenharmony_ci
24117fd14ceSopenharmony_ci  ohos_prebuilt_etc("auth_service.rc") {
24217fd14ceSopenharmony_ci    source = "${frameworks_path}/src/standard/deviceauth_service.cfg"
24317fd14ceSopenharmony_ci    relative_install_dir = "init"
24417fd14ceSopenharmony_ci    subsystem_name = "security"
24517fd14ceSopenharmony_ci    part_name = "device_auth"
24617fd14ceSopenharmony_ci  }
24717fd14ceSopenharmony_ci
24817fd14ceSopenharmony_ci  group("etc") {
24917fd14ceSopenharmony_ci    deps = [ ":auth_service.rc" ]
25017fd14ceSopenharmony_ci  }
25117fd14ceSopenharmony_ci
25217fd14ceSopenharmony_ci  ohos_executable("deviceauth_service") {
25317fd14ceSopenharmony_ci    subsystem_name = "security"
25417fd14ceSopenharmony_ci    part_name = "device_auth"
25517fd14ceSopenharmony_ci    install_enable = true
25617fd14ceSopenharmony_ci
25717fd14ceSopenharmony_ci    include_dirs += [
25817fd14ceSopenharmony_ci      "${frameworks_path}/inc/standard",
25917fd14ceSopenharmony_ci      "${dev_frameworks_path}/inc/permission_adapter",
26017fd14ceSopenharmony_ci      "${dev_frameworks_path}/inc/hiview_adapter",
26117fd14ceSopenharmony_ci    ]
26217fd14ceSopenharmony_ci
26317fd14ceSopenharmony_ci    sources = deviceauth_ipc_files
26417fd14ceSopenharmony_ci    sources += permission_adapter_files
26517fd14ceSopenharmony_ci    sources += [ "${frameworks_path}/src/ipc_service.c" ]
26617fd14ceSopenharmony_ci
26717fd14ceSopenharmony_ci    defines = [ "HILOG_ENABLE" ]
26817fd14ceSopenharmony_ci    defines += [ "DEV_AUTH_HIVIEW_ENABLE" ]
26917fd14ceSopenharmony_ci    defines += [ "DEV_AUTH_SERVICE_BUILD" ]
27017fd14ceSopenharmony_ci    cflags = build_flags
27117fd14ceSopenharmony_ci    if (target_cpu == "arm") {
27217fd14ceSopenharmony_ci      cflags += [ "-DBINDER_IPC_32BIT" ]
27317fd14ceSopenharmony_ci    }
27417fd14ceSopenharmony_ci
27517fd14ceSopenharmony_ci    branch_protector_ret = "pac_ret"
27617fd14ceSopenharmony_ci    sanitize = {
27717fd14ceSopenharmony_ci      cfi = true
27817fd14ceSopenharmony_ci      cfi_cross_dso = true
27917fd14ceSopenharmony_ci      integer_overflow = true
28017fd14ceSopenharmony_ci      boundary_sanitize = true
28117fd14ceSopenharmony_ci      ubsan = true
28217fd14ceSopenharmony_ci      debug = false
28317fd14ceSopenharmony_ci    }
28417fd14ceSopenharmony_ci
28517fd14ceSopenharmony_ci    deps = [
28617fd14ceSopenharmony_ci      ":auth_service.rc",
28717fd14ceSopenharmony_ci      ":deviceauth",
28817fd14ceSopenharmony_ci      "${deps_adapter_path}:${hal_module_name}",
28917fd14ceSopenharmony_ci    ]
29017fd14ceSopenharmony_ci
29117fd14ceSopenharmony_ci    external_deps = [
29217fd14ceSopenharmony_ci      "access_token:libaccesstoken_sdk",
29317fd14ceSopenharmony_ci      "bounds_checking_function:libsec_shared",
29417fd14ceSopenharmony_ci      "cJSON:cjson",
29517fd14ceSopenharmony_ci      "c_utils:utils",
29617fd14ceSopenharmony_ci      "hilog:libhilog",
29717fd14ceSopenharmony_ci      "init:libbegetutil",
29817fd14ceSopenharmony_ci      "ipc:ipc_single",
29917fd14ceSopenharmony_ci      "samgr:samgr_proxy",
30017fd14ceSopenharmony_ci    ]
30117fd14ceSopenharmony_ci  }
30217fd14ceSopenharmony_ci
30317fd14ceSopenharmony_ci  ohos_shared_library("deviceauth_sdk") {
30417fd14ceSopenharmony_ci    subsystem_name = "security"
30517fd14ceSopenharmony_ci    part_name = "device_auth"
30617fd14ceSopenharmony_ci    innerapi_tags = [ "platformsdk" ]
30717fd14ceSopenharmony_ci    version_script = "device_auth.map"
30817fd14ceSopenharmony_ci    public_configs = [ ":deviceauth_config" ]
30917fd14ceSopenharmony_ci
31017fd14ceSopenharmony_ci    include_dirs += [
31117fd14ceSopenharmony_ci      "${frameworks_path}/inc/standard",
31217fd14ceSopenharmony_ci      "${dev_frameworks_path}/inc/permission_adapter",
31317fd14ceSopenharmony_ci      "${dev_frameworks_path}/inc/hiview_adapter",
31417fd14ceSopenharmony_ci    ]
31517fd14ceSopenharmony_ci
31617fd14ceSopenharmony_ci    sources = deviceauth_ipc_files
31717fd14ceSopenharmony_ci    sources += permission_adapter_files
31817fd14ceSopenharmony_ci    sources += [ "${frameworks_path}/src/ipc_sdk.c" ]
31917fd14ceSopenharmony_ci
32017fd14ceSopenharmony_ci    defines = [
32117fd14ceSopenharmony_ci      "__LINUX__",
32217fd14ceSopenharmony_ci      "HILOG_ENABLE",
32317fd14ceSopenharmony_ci    ]
32417fd14ceSopenharmony_ci    cflags = build_flags
32517fd14ceSopenharmony_ci    cflags += [ "-fPIC" ]
32617fd14ceSopenharmony_ci    if (target_cpu == "arm") {
32717fd14ceSopenharmony_ci      cflags += [ "-DBINDER_IPC_32BIT" ]
32817fd14ceSopenharmony_ci    }
32917fd14ceSopenharmony_ci
33017fd14ceSopenharmony_ci    branch_protector_ret = "pac_ret"
33117fd14ceSopenharmony_ci    sanitize = {
33217fd14ceSopenharmony_ci      cfi = true
33317fd14ceSopenharmony_ci      cfi_cross_dso = true
33417fd14ceSopenharmony_ci      integer_overflow = true
33517fd14ceSopenharmony_ci      boundary_sanitize = true
33617fd14ceSopenharmony_ci      ubsan = true
33717fd14ceSopenharmony_ci      debug = false
33817fd14ceSopenharmony_ci    }
33917fd14ceSopenharmony_ci
34017fd14ceSopenharmony_ci    deps = [ "${deps_adapter_path}:${hal_module_name}" ]
34117fd14ceSopenharmony_ci
34217fd14ceSopenharmony_ci    external_deps = [
34317fd14ceSopenharmony_ci      "access_token:libaccesstoken_sdk",
34417fd14ceSopenharmony_ci      "bounds_checking_function:libsec_shared",
34517fd14ceSopenharmony_ci      "cJSON:cjson",
34617fd14ceSopenharmony_ci      "c_utils:utils",
34717fd14ceSopenharmony_ci      "hilog:libhilog",
34817fd14ceSopenharmony_ci      "hisysevent:libhisysevent",
34917fd14ceSopenharmony_ci      "hitrace:hitrace_meter",
35017fd14ceSopenharmony_ci      "init:libbegetutil",
35117fd14ceSopenharmony_ci      "ipc:ipc_single",
35217fd14ceSopenharmony_ci      "samgr:samgr_proxy",
35317fd14ceSopenharmony_ci    ]
35417fd14ceSopenharmony_ci  }
35517fd14ceSopenharmony_ci}
356