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 16if (!defined(global_parts_info) || 17 defined(global_parts_info.account_os_account)) { 18 has_os_account_part = true 19} else { 20 has_os_account_part = false 21} 22 23ohos_source_set("userauth_services_ipc") { 24 include_dirs = [ 25 "inc", 26 "../../frameworks/js/napi/user_auth/inc", 27 ] 28 29 remove_configs = [ "//build/config/compiler:no_exceptions" ] 30 31 sources = [ 32 "src/co_auth_service.cpp", 33 "src/executor_messenger_service.cpp", 34 "src/ipc_common.cpp", 35 "src/user_auth_service.cpp", 36 "src/user_idm_service.cpp", 37 ] 38 39 deps = [ 40 "../../common:iam_utils", 41 "../../frameworks/native/common:attributes", 42 "../../frameworks/native/common:dfx", 43 "../../frameworks/native/ipc:userauth_service_ipc", 44 "../context:userauth_service_context", 45 ] 46 47 external_deps = [ 48 "access_token:libaccesstoken_sdk", 49 "access_token:libtokenid_sdk", 50 "c_utils:utils", 51 "drivers_interface_user_auth:libuser_auth_proxy_1.1", 52 "hilog:libhilog", 53 "hitrace:hitrace_meter", 54 "init:libbegetutil", 55 "ipc:ipc_single", 56 "napi:ace_napi", 57 "safwk:system_ability_fwk", 58 "samgr:samgr_proxy", 59 ] 60 61 if (has_os_account_part) { 62 cflags_cc = [ "-DHAS_OS_ACCOUNT_PART" ] 63 external_deps += [ "os_account:os_account_innerkits" ] 64 } 65 66 configs = [ 67 "../base:userauth_service_base_config", 68 "../../common:iam_log_config", 69 "../core:userauth_service_core_config", 70 ] 71 72 subsystem_name = "useriam" 73 part_name = "user_auth_framework" 74} 75