• 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
16config("userauth_client_config") {
17  include_dirs = [
18    "inc",
19    "//base/useriam/user_auth_framework/interfaces/inner_api",
20  ]
21}
22
23ohos_shared_library("userauth_client") {
24  include_dirs = [
25    "inc",
26    "//base/useriam/user_auth_framework/interfaces/inner_api",
27  ]
28
29  sources = [
30    "src/auth_message_impl.cpp",
31    "src/co_auth_client_impl.cpp",
32    "src/executor_callback_service.cpp",
33    "src/executor_messenger_client.cpp",
34    "src/ipc_client_utils.cpp",
35    "src/user_auth_callback_service.cpp",
36    "src/user_auth_client_impl.cpp",
37    "src/user_idm_callback_service.cpp",
38    "src/user_idm_client_impl.cpp",
39  ]
40
41  configs = [
42    "//base/useriam/user_auth_framework/common:iam_log_config",
43    "//base/useriam/user_auth_framework/frameworks/native/ipc:userauth_client_ipc_config",
44  ]
45  remove_configs = [ "//build/config/compiler:no_exceptions" ]
46
47  public_configs = [ ":userauth_client_config" ]
48
49  deps = [
50    "//base/useriam/user_auth_framework/common:iam_utils",
51    "//base/useriam/user_auth_framework/frameworks/native/common:attributes",
52    "//base/useriam/user_auth_framework/frameworks/native/common:dfx",
53    "//base/useriam/user_auth_framework/frameworks/native/ipc:userauth_client_ipc",
54  ]
55
56  if (use_musl) {
57    version_script = "user_auth_client_map"
58  }
59
60  external_deps = [
61    "c_utils:utils",
62    "hiviewdfx_hilog_native:libhilog",
63    "ipc:ipc_core",
64    "samgr:samgr_proxy",
65  ]
66
67  part_name = "user_auth_framework"
68}
69