# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/user_iam/auth_executor_mgr/auth_executor_mgr.gni") config("coauth_private_config") { include_dirs = [ "${coauth_service_path}/include", "${coauth_frameworks_path}/kitsimpl/include", ] } config("coauth_public_config") { include_dirs = [ "include", "${coauth_frameworks_path}/kitsimpl/include", ] } ohos_shared_library("coauth_framework") { sources = [ "../../frameworks/kitsimpl/src/auth_executor_registry.cpp", "../../frameworks/kitsimpl/src/auth_info.cpp", "../../frameworks/kitsimpl/src/co_auth.cpp", "../../frameworks/kitsimpl/src/coauth_callback_proxy.cpp", "../../frameworks/kitsimpl/src/coauth_callback_stub.cpp", "../../frameworks/kitsimpl/src/coauth_proxy.cpp", "../../frameworks/kitsimpl/src/executor_callback_proxy.cpp", "../../frameworks/kitsimpl/src/executor_callback_stub.cpp", "../../frameworks/kitsimpl/src/executor_messenger_proxy.cpp", "../../frameworks/kitsimpl/src/executor_messenger_stub.cpp", "../../frameworks/kitsimpl/src/query_callback_proxy.cpp", "../../frameworks/kitsimpl/src/query_callback_stub.cpp", "../../frameworks/kitsimpl/src/set_prop_callback_proxy.cpp", "../../frameworks/kitsimpl/src/set_prop_callback_stub.cpp", "../../interfaces/innerkits/src/auth_attributes.cpp", "../../interfaces/innerkits/src/auth_executor.cpp", "../../interfaces/innerkits/src/auth_message.cpp", ] configs = [ "${coauth_utils_path}:utils_config", ":coauth_private_config", ] public_configs = [ ":coauth_public_config", "${coauth_utils_path}:utils_config", ] deps = [ "//utils/native/base:utils" ] external_deps = [ "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "samgr_standard:samgr_proxy", ] part_name = "${coauth_native_part_name}" }