• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2025 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("user_auth_common_config") {
17  include_dirs = [ "inc" ]
18}
19
20ohos_source_set("user_auth_common") {
21  sanitize = {
22    integer_overflow = true
23    boundary_sanitize = true
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28  branch_protector_ret = "pac_ret"
29  include_dirs = [ "inc" ]
30
31  remove_configs = [ "//build/config/compiler:no_exceptions" ]
32
33  sources = [
34    "src/user_auth_helper.cpp",
35    "src/modal_extension_callback.cpp",
36    "src/user_auth_modal_callback.cpp",
37    "src/user_auth_api_event_reporter.cpp",
38    "src/config_parser.cpp",
39  ]
40
41  external_deps = [
42    "ability_base:want",
43    "ability_runtime:ability_context_native",
44    "ability_runtime:ability_manager",
45    "ability_runtime:abilitykit_native",
46    "ability_runtime:app_context",
47    "ability_runtime:ui_extension",
48    "ace_engine:ace_uicontent",
49    "hiappevent:hiappevent_innerapi",
50    "hilog:libhilog",
51  ]
52
53  deps = [
54    "../native/client:userauth_client",
55  ]
56
57  configs = [
58    "../../common:iam_log_config",
59    "../../common:iam_utils_config",
60  ]
61
62  public_configs = [ ":user_auth_common_config" ]
63
64  subsystem_name = "useriam"
65  part_name = "user_auth_framework"
66}
67