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 stack_protector_ret = true 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_1.1", 53 "graphic_2d:librender_service_client", 54 "hilog:libhilog", 55 "ipc:ipc_single", 56 "power_manager:powermgr_client", 57 "samgr:samgr_proxy", 58 "user_auth_framework:userauth_executors", 59 "window_manager:libdm", 60 ] 61 62 if (defined(use_rosen_drawing) && use_rosen_drawing) { 63 external_deps += [ "graphic_2d:2d_graphics" ] 64 defines = [ "USE_ROSEN_DRAWING" ] 65 } 66 67 remove_configs = [ "//build/config/compiler:no_exceptions" ] 68 69 subsystem_name = "useriam" 70 part_name = "fingerprint_auth" 71} 72 73ohos_shared_library("fingerprintauthservice_ex") { 74 sanitize = { 75 integer_overflow = true 76 ubsan = true 77 boundary_sanitize = true 78 cfi = true 79 cfi_cross_dso = true 80 debug = false 81 } 82 stack_protector_ret = true 83 deps = [ ":fingerprintauthservice_ex_source_set" ] 84 85 if (use_musl) { 86 version_script = "fingerprint_auth_service_ex_map" 87 } 88 89 subsystem_name = "useriam" 90 part_name = "fingerprint_auth" 91} 92