• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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
23ohos_source_set("userauth_services_ipc") {
24  include_dirs = [
25    "inc",
26    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
27  ]
28
29  remove_configs = [ "//build/config/compiler:no_exceptions" ]
30
31  sources = [
32    "src/co_auth_service.cpp",
33    "src/executor_messenger_service.cpp",
34    "src/ipc_common.cpp",
35    "src/user_auth_service.cpp",
36    "src/user_idm_service.cpp",
37  ]
38
39  deps = [
40    "//base/useriam/user_auth_framework/common:iam_utils",
41    "//base/useriam/user_auth_framework/frameworks/native/common:attributes",
42    "//base/useriam/user_auth_framework/frameworks/native/common:dfx",
43    "//base/useriam/user_auth_framework/frameworks/native/ipc:userauth_service_ipc",
44    "//base/useriam/user_auth_framework/services/base:userauth_service_base",
45    "//base/useriam/user_auth_framework/services/context:userauth_service_context",
46    "//base/useriam/user_auth_framework/services/core:userauth_service_core",
47    "//third_party/openssl:libcrypto_shared",
48  ]
49
50  external_deps = [
51    "access_token:libaccesstoken_sdk",
52    "c_utils:utils",
53    "drivers_interface_user_auth:libuser_auth_proxy_1.0",
54    "hilog_native:libhilog",
55    "hitrace_native:hitrace_meter",
56    "init:libbegetutil",
57    "ipc:ipc_core",
58    "safwk:system_ability_fwk",
59  ]
60
61  if (has_os_account_part) {
62    cflags_cc = [ "-DHAS_OS_ACCOUNT_PART" ]
63    external_deps += [ "os_account:os_account_innerkits" ]
64  }
65
66  configs = [ "//base/useriam/user_auth_framework/common:iam_log_config" ]
67
68  part_name = "user_auth_framework"
69}
70