• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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("faceauth_framework_public_config") {
17  include_dirs = [ "inc" ]
18}
19
20ohos_shared_library("faceauth_framework") {
21  sources = [
22    "src/face_auth_client_impl.cpp",
23    "src/face_auth_proxy.cpp",
24  ]
25
26  public_configs = [ ":faceauth_framework_public_config" ]
27
28  configs = [ "../../common:iam_log_config" ]
29
30  include_dirs = [
31    "../../common/utils",
32    "../../common/inc",
33  ]
34
35  external_deps = [
36    "access_token:libaccesstoken_sdk",
37    "access_token:libtoken_setproc",
38    "access_token:libtokenid_sdk",
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_single",
42    "samgr:samgr_proxy",
43  ]
44
45  if (use_musl) {
46    version_script = "face_auth_framework_map"
47  }
48
49  if (defined(global_parts_info.graphic_graphic_2d)) {
50    external_deps += [ "graphic_2d:surface" ]
51  }
52
53  subsystem_name = "useriam"
54  innerapi_tags = [ "platformsdk" ]
55  part_name = "face_auth"
56}
57
58ohos_source_set("faceauth_framework_stub") {
59  sources = [ "src/face_auth_stub.cpp" ]
60
61  configs = [ "../../common:iam_log_config" ]
62
63  public_configs = [ ":faceauth_framework_public_config" ]
64
65  include_dirs = [
66    "../../common/utils",
67    "../../common/inc",
68  ]
69
70  external_deps = [
71    "hilog:libhilog",
72    "ipc:ipc_single",
73  ]
74
75  if (defined(global_parts_info.graphic_graphic_2d)) {
76    external_deps += [ "graphic_2d:surface" ]
77  }
78
79  subsystem_name = "useriam"
80  part_name = "face_auth"
81}
82