• 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("//base/user_iam/user_auth/userauth.gni")
15
16config("userauth_private_config") {
17  include_dirs = [
18    "include",
19    "//base/user_iam/auth_executor_mgr/common/interface",
20    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
21    "//base/security/access_token/interfaces/innerkits/accesstoken/include",
22  ]
23}
24
25ohos_shared_library("userauthservice") {
26  sources = [
27    "src/context_thread_pool.cpp",
28    "src/userauth_adapter.cpp",
29    "src/userauth_async_proxy.cpp",
30    "src/userauth_controller.cpp",
31    "src/userauth_datamgr.cpp",
32    "src/userauth_excallback_impl.cpp",
33    "src/userauth_service.cpp",
34    "src/userauth_stub.cpp",
35  ]
36
37  configs = [
38    "${userauth_utils_path}:utils_config",
39    ":userauth_private_config",
40  ]
41
42  deps = [
43    "${userauth_innerkits_path}/native:userauth_framework",
44    "//base/security/access_token/interfaces/innerkits/accesstoken:libaccesstoken_sdk",
45    "//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
46    "//base/user_iam/auth_executor_mgr/common:useriam_common_lib",
47    "//base/user_iam/auth_executor_mgr/interfaces/innerkits:coauth_framework",
48    "//base/user_iam/user_idm/interfaces/innerkits:useridm_framework",
49    "//third_party/openssl:libcrypto_static",
50    "//utils/native/base:utils",
51  ]
52
53  external_deps = [
54    "hiviewdfx_hilog_native:libhilog",
55    "ipc:ipc_core",
56    "os_account_standard:os_account_innerkits",
57    "safwk:system_ability_fwk",
58    "samgr_standard:samgr_proxy",
59  ]
60
61  remove_configs = [ "//build/config/compiler:no_exceptions" ]
62
63  part_name = "${userauth_native_part_name}"
64}
65