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 sources = [ 22 "src/screen_state_monitor.cpp", 23 "src/sensor_illumination_task.cpp", 24 ] 25 26 include_dirs = [ 27 "inc", 28 "../services/inc", 29 "../common/inc", 30 "../common/logs", 31 "../common/utils", 32 ] 33 34 public_configs = [ ":fingerprintauthservice_ex_config" ] 35 36 deps = [ "../services:fingerprintauthservice" ] 37 38 external_deps = [ 39 "ability_base:want", 40 "c_utils:utils", 41 "common_event_service:cesfwk_innerkits", 42 "display_manager:displaymgr", 43 "drivers_interface_fingerprint_auth:libfingerprint_auth_proxy_1.1", 44 "graphic_2d:librender_service_client", 45 "hilog:libhilog", 46 "ipc:ipc_single", 47 "power_manager:powermgr_client", 48 "samgr:samgr_proxy", 49 "user_auth_framework:userauth_executors", 50 "window_manager:libdm", 51 ] 52 53 if (defined(use_rosen_drawing) && use_rosen_drawing) { 54 external_deps += [ "graphic_2d:2d_graphics" ] 55 defines = [ "USE_ROSEN_DRAWING" ] 56 } 57 58 remove_configs = [ "//build/config/compiler:no_exceptions" ] 59 60 subsystem_name = "useriam" 61 part_name = "fingerprint_auth" 62} 63 64ohos_shared_library("fingerprintauthservice_ex") { 65 deps = [ ":fingerprintauthservice_ex_source_set" ] 66 67 if (use_musl) { 68 version_script = "fingerprint_auth_service_ex_map" 69 } 70 71 subsystem_name = "useriam" 72 part_name = "fingerprint_auth" 73} 74