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("//base/useriam/fingerprint_auth/fingerprint_auth.gni") 15import("//build/ohos.gni") 16 17config("fingerprintauthservice_ex_config") { 18 include_dirs = [ "inc" ] 19} 20 21ohos_source_set("fingerprintauthservice_ex_source_set") { 22 sanitize = { 23 integer_overflow = true 24 ubsan = true 25 boundary_sanitize = true 26 cfi = true 27 cfi_cross_dso = true 28 debug = false 29 } 30 branch_protector_ret = "pac_ret" 31 sources = [ 32 "src/screen_state_monitor.cpp", 33 "src/sensor_illumination_task.cpp", 34 ] 35 36 include_dirs = [ 37 "inc", 38 "../services/inc", 39 "../common/inc", 40 "../common/logs", 41 "../common/utils", 42 ] 43 44 public_configs = [ ":fingerprintauthservice_ex_config" ] 45 46 deps = [ "../services:fingerprintauthservice" ] 47 48 external_deps = [ 49 "ability_base:want", 50 "c_utils:utils", 51 "common_event_service:cesfwk_innerkits", 52 "drivers_interface_fingerprint_auth:libfingerprint_auth_proxy_2.0", 53 "egl:libEGL", 54 "graphic_2d:libcomposer", 55 "graphic_2d:librender_service_base", 56 "graphic_2d:librender_service_client", 57 "graphic_surface:buffer_handle", 58 "graphic_surface:surface_headers", 59 "hdf_core:libhdf_utils", 60 "hilog:libhilog", 61 "ipc:ipc_single", 62 "opengles:libGLES", 63 "samgr:samgr_proxy", 64 "skia:skia_canvaskit", 65 "user_auth_framework:userauth_executors", 66 "window_manager:libdm", 67 ] 68 69 defines = [] 70 71 if (use_display_manager_component) { 72 external_deps += [ "display_manager:displaymgr" ] 73 defines += [ "CONFIG_USE_DISPLAY_MANAGER_COMPONENT" ] 74 } 75 76 if (use_power_manager_component) { 77 external_deps += [ "power_manager:powermgr_client" ] 78 defines += [ "CONFIG_USE_POWER_MANAGER_COMPONENT" ] 79 } 80 81 if (defined(use_rosen_drawing) && use_rosen_drawing) { 82 external_deps += [ "graphic_2d:2d_graphics" ] 83 defines += [ "USE_ROSEN_DRAWING" ] 84 } 85 86 remove_configs = [ "//build/config/compiler:no_exceptions" ] 87 88 subsystem_name = "useriam" 89 part_name = "fingerprint_auth" 90} 91 92ohos_shared_library("fingerprintauthservice_ex") { 93 sanitize = { 94 integer_overflow = true 95 ubsan = true 96 boundary_sanitize = true 97 cfi = true 98 cfi_cross_dso = true 99 debug = false 100 } 101 branch_protector_ret = "pac_ret" 102 deps = [ ":fingerprintauthservice_ex_source_set" ] 103 104 external_deps = [ "hilog:libhilog" ] 105 106 if (use_musl) { 107 version_script = "fingerprint_auth_service_ex_map" 108 } 109 110 subsystem_name = "useriam" 111 part_name = "fingerprint_auth" 112} 113