• 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")
15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16
17ohos_shared_library("libpin_auth_interface_service_1.0") {
18  include_dirs = [
19    "service/inc",
20    "adaptor/inc",
21    "common/inc",
22    "database/inc",
23    "main/inc",
24    "//third_party/openssl/include",
25    "//base/useriam/user_auth_framework/common/logs",
26  ]
27  sources = [
28    "adaptor/src/adaptor_algorithm.c",
29    "adaptor/src/adaptor_file.c",
30    "adaptor/src/adaptor_memory.c",
31    "adaptor/src/adaptor_time.c",
32    "adaptor/src/file_operator.c",
33    "common/src/buffer.c",
34    "database/src/pin_db.c",
35    "main/src/pin_auth.cpp",
36    "main/src/pin_func.c",
37    "service/src/executor_impl.cpp",
38    "service/src/pin_auth_interface_service.cpp",
39  ]
40
41  deps = [
42    "//base/useriam/user_auth_framework/common:iam_utils",
43    "//third_party/openssl:libcrypto_shared",
44  ]
45
46  external_deps = [
47    "c_utils:utils",
48    "drivers_interface_pin_auth:pin_auth_idl_headers",
49    "hiviewdfx_hilog_native:libhilog",
50    "init:libbegetutil",
51    "ipc:ipc_single",
52  ]
53
54  install_images = [ chipset_base_dir ]
55  remove_configs = [ "//build/config/compiler:no_exceptions" ]
56  subsystem_name = "hdf"
57  part_name = "drivers_peripheral_pin_auth"
58}
59
60ohos_shared_library("libpin_auth_driver") {
61  include_dirs = [
62    "service/inc",
63    "main/inc",
64    "//base/useriam/user_auth_framework/common/logs",
65  ]
66  sources = [ "service/src/pin_auth_interface_driver.cpp" ]
67  deps = [
68    "//base/useriam/user_auth_framework/common:iam_utils",
69    "//drivers/interface/pin_auth/v1_0:libpin_auth_stub_1.0",
70    "//drivers/peripheral/pin_auth/hdi_service:libpin_auth_interface_service_1.0",
71  ]
72
73  external_deps = [
74    "c_utils:utils",
75    "hdf_core:libhdf_host",
76    "hdf_core:libhdf_ipc_adapter",
77    "hdf_core:libhdi",
78    "hiviewdfx_hilog_native:libhilog",
79    "ipc:ipc_single",
80  ]
81
82  install_images = [ chipset_base_dir ]
83  remove_configs = [ "//build/config/compiler:no_exceptions" ]
84  subsystem_name = "hdf"
85  part_name = "drivers_peripheral_pin_auth"
86}
87
88group("hdf_pin_auth_service") {
89  deps = [
90    ":libpin_auth_driver",
91    ":libpin_auth_interface_service_1.0",
92  ]
93}
94