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("fingerprintauthservice_ex_config") { 17 include_dirs = [ "inc" ] 18} 19 20ohos_source_set("fingerprintauthservice_ex_source_set") { 21 sanitize = { 22 integer_overflow = true 23 ubsan = true 24 boundary_sanitize = true 25 cfi = true 26 cfi_cross_dso = true 27 debug = false 28 } 29 branch_protector_ret = "pac_ret" 30 sources = [ 31 "src/screen_state_monitor.cpp", 32 "src/sensor_illumination_task.cpp", 33 ] 34 35 include_dirs = [ 36 "inc", 37 "../services/inc", 38 "../common/inc", 39 "../common/logs", 40 "../common/utils", 41 ] 42 43 public_configs = [ ":fingerprintauthservice_ex_config" ] 44 45 deps = [ "../services:fingerprintauthservice" ] 46 47 external_deps = [ 48 "ability_base:want", 49 "c_utils:utils", 50 "common_event_service:cesfwk_innerkits", 51 "display_manager:displaymgr", 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 "power_manager:powermgr_client", 64 "samgr:samgr_proxy", 65 "skia:skia_canvaskit", 66 "user_auth_framework:userauth_executors", 67 "window_manager:libdm", 68 ] 69 70 if (defined(use_rosen_drawing) && use_rosen_drawing) { 71 external_deps += [ "graphic_2d:2d_graphics" ] 72 defines = [ "USE_ROSEN_DRAWING" ] 73 } 74 75 remove_configs = [ "//build/config/compiler:no_exceptions" ] 76 77 subsystem_name = "useriam" 78 part_name = "fingerprint_auth" 79} 80 81ohos_shared_library("fingerprintauthservice_ex") { 82 sanitize = { 83 integer_overflow = true 84 ubsan = true 85 boundary_sanitize = true 86 cfi = true 87 cfi_cross_dso = true 88 debug = false 89 } 90 branch_protector_ret = "pac_ret" 91 deps = [ ":fingerprintauthservice_ex_source_set" ] 92 93 external_deps = [ "hilog:libhilog" ] 94 95 if (use_musl) { 96 version_script = "fingerprint_auth_service_ex_map" 97 } 98 99 subsystem_name = "useriam" 100 part_name = "fingerprint_auth" 101} 102