• 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_service_context_config") {
17  include_dirs = [ "inc" ]
18}
19
20ohos_source_set("userauth_service_context") {
21  include_dirs = [ "inc" ]
22
23  remove_configs = [ "//build/config/compiler:no_exceptions" ]
24
25  sources = [
26    "src/base_context.cpp",
27    "src/context_callback_impl.cpp",
28    "src/context_factory.cpp",
29    "src/context_helper.cpp",
30    "src/context_pool_impl.cpp",
31    "src/enroll_context.cpp",
32    "src/identify_context.cpp",
33    "src/simple_auth_context.cpp",
34    "src/trace.cpp",
35  ]
36
37  deps = [
38    "//base/useriam/user_auth_framework/common:iam_utils",
39    "//base/useriam/user_auth_framework/frameworks/native/common:attributes",
40    "//base/useriam/user_auth_framework/frameworks/native/common:dfx",
41    "//base/useriam/user_auth_framework/frameworks/native/ipc:userauth_service_ipc",
42    "//base/useriam/user_auth_framework/services/base:userauth_service_base",
43    "//base/useriam/user_auth_framework/services/core:userauth_service_core",
44    "//third_party/openssl:libcrypto_shared",
45  ]
46
47  external_deps = [
48    "access_token:libaccesstoken_sdk",
49    "c_utils:utils",
50    "drivers_interface_user_auth:libuser_auth_proxy_1.0",
51    "hilog_native:libhilog",
52    "hitrace_native:hitrace_meter",
53    "init:libbegetutil",
54    "ipc:ipc_core",
55    "safwk:system_ability_fwk",
56  ]
57
58  public_configs = [ ":userauth_service_context_config" ]
59
60  configs = [ "//base/useriam/user_auth_framework/common:iam_log_config" ]
61
62  part_name = "user_auth_framework"
63}
64