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("//foundation/ability/ability_runtime/ability_runtime.gni") 16 17ohos_shared_library("faceauthservice") { 18 sources = [ 19 "src/face_auth_driver_hdi.cpp", 20 "src/face_auth_executor_callback_hdi.cpp", 21 "src/face_auth_executor_hdi.cpp", 22 "src/face_auth_interface_adapter.cpp", 23 "src/face_auth_service.cpp", 24 ] 25 include_dirs = [ 26 "inc", 27 "//base/useriam/face_auth/common/inc", 28 "//base/useriam/user_auth_framework/common/logs", 29 "//base/useriam/user_auth_framework/common/utils", 30 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", 31 ] 32 33 deps = [ 34 "//base/useriam/face_auth/frameworks/ipc:faceauth_framework_stub", 35 "//base/useriam/user_auth_framework/common/executors:userauth_executors", 36 ] 37 external_deps = [ 38 "ability_base:want", 39 "access_token:libaccesstoken_sdk", 40 "bundle_framework:appexecfwk_core", 41 "c_utils:utils", 42 "drivers_interface_face_auth:libface_auth_proxy_1.0", 43 "hiviewdfx_hilog_native:libhilog", 44 "ipc:ipc_core", 45 "safwk:system_ability_fwk", 46 "samgr:samgr_proxy", 47 ] 48 49 remove_configs = [ "//build/config/compiler:no_exceptions" ] 50 51 if (ability_runtime_graphics) { 52 external_deps += [ "graphic_standard:surface" ] 53 } 54 subsystem_name = "useriam" 55 part_name = "face_auth" 56} 57