• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
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/ohos.gni")
15
16if (!defined(global_parts_info) ||
17    defined(global_parts_info.account_os_account)) {
18  has_os_account_part = true
19} else {
20  has_os_account_part = false
21}
22
23config("userauth_service_core_config") {
24  include_dirs = [
25    "inc",
26    "src",
27    "../context/inc",
28  ]
29}
30
31ohos_source_set("userauth_service_core") {
32  include_dirs = [
33    "inc",
34    "src",
35  ]
36
37  remove_configs = [ "//build/config/compiler:no_exceptions" ]
38
39  sources = [
40    "src/auth_widget_helper.cpp",
41    "src/authentication_impl.cpp",
42    "src/credential_info_impl.cpp",
43    "src/enrolled_info_impl.cpp",
44    "src/enrollment_impl.cpp",
45    "src/identification_impl.cpp",
46    "src/resource_node_impl.cpp",
47    "src/resource_node_pool_impl.cpp",
48    "src/resource_node_utils.cpp",
49    "src/schedule_node_builder.cpp",
50    "src/schedule_node_helper.cpp",
51    "src/schedule_node_impl.cpp",
52    "src/secure_user_info_impl.cpp",
53    "src/template_cache_manager.cpp",
54    "src/user_idm_database_impl.cpp",
55    "src/user_idm_session_controller_impl.cpp",
56    "src/widget_schedule_node_impl.cpp",
57  ]
58
59  deps = [
60    "../../frameworks/native/common:attributes",
61    "../../frameworks/native/common:dfx",
62    "../../services/base:userauth_service_base",
63  ]
64
65  external_deps = [
66    "c_utils:utils",
67    "drivers_interface_user_auth:libuser_auth_proxy_1.1",
68    "hilog:libhilog",
69    "hitrace:hitrace_meter",
70    "init:libbegetutil",
71    "ipc:ipc_core",
72    "safwk:system_ability_fwk",
73    "samgr:samgr_proxy",
74  ]
75
76  if (has_os_account_part) {
77    cflags_cc = [ "-DHAS_OS_ACCOUNT_PART" ]
78    external_deps += [ "os_account:os_account_innerkits" ]
79  }
80
81  public_configs = [ ":userauth_service_core_config" ]
82
83  configs = [
84    "../../common:iam_log_config",
85    "../../common:iam_utils_config",
86    "../../frameworks/native/ipc:userauth_client_ipc_config",
87  ]
88
89  subsystem_name = "useriam"
90  part_name = "user_auth_framework"
91}
92