1# Copyright (c) 2022 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/user_iam/auth_executor_mgr/auth_executor_mgr.gni") 15 16config("coauth_private_config") { 17 include_dirs = [ 18 "${coauth_service_path}/include", 19 "${coauth_frameworks_path}/kitsimpl/include", 20 ] 21} 22 23config("coauth_public_config") { 24 include_dirs = [ 25 "include", 26 "${coauth_frameworks_path}/kitsimpl/include", 27 ] 28} 29 30ohos_shared_library("coauth_framework") { 31 sources = [ 32 "../../frameworks/kitsimpl/src/auth_executor_registry.cpp", 33 "../../frameworks/kitsimpl/src/auth_info.cpp", 34 "../../frameworks/kitsimpl/src/co_auth.cpp", 35 "../../frameworks/kitsimpl/src/coauth_callback_proxy.cpp", 36 "../../frameworks/kitsimpl/src/coauth_callback_stub.cpp", 37 "../../frameworks/kitsimpl/src/coauth_proxy.cpp", 38 "../../frameworks/kitsimpl/src/executor_callback_proxy.cpp", 39 "../../frameworks/kitsimpl/src/executor_callback_stub.cpp", 40 "../../frameworks/kitsimpl/src/executor_messenger_proxy.cpp", 41 "../../frameworks/kitsimpl/src/executor_messenger_stub.cpp", 42 "../../frameworks/kitsimpl/src/query_callback_proxy.cpp", 43 "../../frameworks/kitsimpl/src/query_callback_stub.cpp", 44 "../../frameworks/kitsimpl/src/set_prop_callback_proxy.cpp", 45 "../../frameworks/kitsimpl/src/set_prop_callback_stub.cpp", 46 "../../interfaces/innerkits/src/auth_attributes.cpp", 47 "../../interfaces/innerkits/src/auth_executor.cpp", 48 "../../interfaces/innerkits/src/auth_message.cpp", 49 ] 50 51 configs = [ 52 "${coauth_utils_path}:utils_config", 53 ":coauth_private_config", 54 ] 55 56 public_configs = [ 57 ":coauth_public_config", 58 "${coauth_utils_path}:utils_config", 59 ] 60 61 deps = [ "//utils/native/base:utils" ] 62 63 external_deps = [ 64 "hiviewdfx_hilog_native:libhilog", 65 "ipc:ipc_core", 66 "samgr_standard:samgr_proxy", 67 ] 68 69 part_name = "${coauth_native_part_name}" 70} 71