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 17config("faceauth_framework_public_config") { 18 include_dirs = [ "inc" ] 19} 20 21ohos_shared_library("faceauth_framework") { 22 sources = [ 23 "src/face_auth_client.cpp", 24 "src/face_auth_proxy.cpp", 25 ] 26 27 public_configs = [ ":faceauth_framework_public_config" ] 28 29 configs = [ "//base/useriam/user_auth_framework/common:iam_log_config" ] 30 31 include_dirs = [ 32 "//base/useriam/user_auth_framework/common/utils", 33 "//base/useriam/face_auth/common/inc", 34 ] 35 36 external_deps = [ 37 "c_utils:utils", 38 "hiviewdfx_hilog_native:libhilog", 39 "ipc:ipc_core", 40 "samgr:samgr_proxy", 41 ] 42 43 if (ability_runtime_graphics) { 44 external_deps += [ "graphic_standard:surface" ] 45 } 46 47 subsystem_name = "useriam" 48 part_name = "face_auth" 49} 50 51ohos_source_set("faceauth_framework_stub") { 52 sources = [ "src/face_auth_stub.cpp" ] 53 54 configs = [ "//base/useriam/user_auth_framework/common:iam_log_config" ] 55 56 public_configs = [ ":faceauth_framework_public_config" ] 57 58 include_dirs = [ 59 "//base/useriam/user_auth_framework/common/utils", 60 "//base/useriam/face_auth/common/inc", 61 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 62 ] 63 64 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 65 66 if (ability_runtime_graphics) { 67 external_deps += [ "graphic_standard:surface" ] 68 include_dirs += 69 [ "//foundation/graphic/graphic_2d/frameworks/surface/include" ] 70 } 71} 72