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("faceauthservice_ex_config") { 17 include_dirs = [ "inc" ] 18} 19 20ohos_source_set("faceauthservice_ex_source_set") { 21 sources = [ 22 "src/finite_state_machine_builder.cpp", 23 "src/finite_state_machine_impl.cpp", 24 "src/screen_brightness_task.cpp", 25 "src/thread_handler_impl.cpp", 26 ] 27 include_dirs = [ 28 "inc", 29 "../services/inc", 30 "../common/inc", 31 "../common/logs", 32 "../common/utils", 33 ] 34 35 public_configs = [ ":faceauthservice_ex_config" ] 36 37 deps = [ "../services:faceauthservice" ] 38 39 external_deps = [ 40 "c_utils:utils", 41 "display_manager:displaymgr", 42 "drivers_interface_face_auth:libface_auth_proxy_1.1", 43 "hilog:libhilog", 44 "init:libbegetutil", 45 "power_manager:powermgr_client", 46 "sensor:sensor_interface_native", 47 "user_auth_framework:userauth_executors", 48 ] 49 50 if (defined(global_parts_info.graphic_graphic_2d)) { 51 external_deps += [ "graphic_2d:surface" ] 52 } 53 54 remove_configs = [ "//build/config/compiler:no_exceptions" ] 55 56 subsystem_name = "useriam" 57 part_name = "face_auth" 58} 59 60ohos_shared_library("faceauthservice_ex") { 61 deps = [ ":faceauthservice_ex_source_set" ] 62 63 if (use_musl) { 64 version_script = "face_auth_service_ex_map" 65 } 66 67 subsystem_name = "useriam" 68 part_name = "face_auth" 69} 70