• 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.
13import("//base/user_iam/user_idm/useridm.gni")
14import("//build/lite/config/component/lite_component.gni")
15import("//build/ohos.gni")
16
17config("useridm_public_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "include",
21    "//third_party/libuv/include",
22  ]
23  cflags = []
24}
25
26ohos_shared_library("useridm") {
27  sources = [
28    "src/auth_common.cpp",
29    "src/authface_userIDM_helper.cpp",
30    "src/callback.cpp",
31    "src/useridentity_manager.cpp",
32  ]
33
34  include_dirs = [
35    "./include",
36    "//third_party/libuv/include",
37    "${useridm_innerkits_path}:ohosuseridm",
38  ]
39
40  deps = [
41    "//base/user_iam/user_idm/interfaces/innerkits:useridm_framework",
42    "//foundation/ace/napi:ace_napi",
43    "//utils/native/base:utils",
44  ]
45
46  public_configs = [ ":useridm_public_config" ]
47  external_deps = [
48    "hiviewdfx_hilog_native:libhilog",
49    "ipc:ipc_core",
50  ]
51  if (is_standard_system) {
52    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
53  } else {
54    external_deps += [ "hilog:libhilog" ]
55  }
56
57  public_deps = []
58  relative_install_dir = "module"
59  part_name = "user_idm"
60  subsystem_name = "useriam"
61}
62