1c2b37d2cSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2c2b37d2cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3c2b37d2cSopenharmony_ci# you may not use this file except in compliance with the License. 4c2b37d2cSopenharmony_ci# You may obtain a copy of the License at 5c2b37d2cSopenharmony_ci# 6c2b37d2cSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7c2b37d2cSopenharmony_ci# 8c2b37d2cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9c2b37d2cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10c2b37d2cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11c2b37d2cSopenharmony_ci# See the License for the specific language governing permissions and 12c2b37d2cSopenharmony_ci# limitations under the License. 13c2b37d2cSopenharmony_ci 14c2b37d2cSopenharmony_ciimport("//build/ohos.gni") 15c2b37d2cSopenharmony_ciimport("../../../os_account.gni") 16c2b37d2cSopenharmony_ci 17c2b37d2cSopenharmony_ciohos_shared_library("cj_distributed_account_ffi") { 18c2b37d2cSopenharmony_ci sanitize = { 19c2b37d2cSopenharmony_ci cfi = true 20c2b37d2cSopenharmony_ci cfi_cross_dso = true 21c2b37d2cSopenharmony_ci debug = false 22c2b37d2cSopenharmony_ci } 23c2b37d2cSopenharmony_ci 24c2b37d2cSopenharmony_ci include_dirs = [ 25c2b37d2cSopenharmony_ci "${os_account_path}/frameworks/cj/distributed_account/include", 26c2b37d2cSopenharmony_ci "${os_account_path}/interfaces/innerkits/appaccount/native/include", 27c2b37d2cSopenharmony_ci ] 28c2b37d2cSopenharmony_ci 29c2b37d2cSopenharmony_ci sources = [ "./src/cj_distributed_account.cpp" ] 30c2b37d2cSopenharmony_ci 31c2b37d2cSopenharmony_ci deps = [ 32c2b37d2cSopenharmony_ci "${common_path}:libaccount_common", 33c2b37d2cSopenharmony_ci "${innerkits_native_path}:libaccountkits", 34c2b37d2cSopenharmony_ci ] 35c2b37d2cSopenharmony_ci 36c2b37d2cSopenharmony_ci external_deps = [ 37c2b37d2cSopenharmony_ci "ability_base:want", 38c2b37d2cSopenharmony_ci "ability_runtime:ability_connect_callback_stub", 39c2b37d2cSopenharmony_ci "ability_runtime:ability_manager", 40c2b37d2cSopenharmony_ci "ability_runtime:abilitykit_native", 41c2b37d2cSopenharmony_ci "c_utils:utils", 42c2b37d2cSopenharmony_ci "common_event_service:cesfwk_innerkits", 43c2b37d2cSopenharmony_ci "hilog:libhilog", 44c2b37d2cSopenharmony_ci "ipc:ipc_single", 45c2b37d2cSopenharmony_ci "napi:cj_bind_ffi", 46c2b37d2cSopenharmony_ci "napi:cj_bind_native", 47c2b37d2cSopenharmony_ci ] 48c2b37d2cSopenharmony_ci 49c2b37d2cSopenharmony_ci innerapi_tags = [ "platformsdk" ] 50c2b37d2cSopenharmony_ci subsystem_name = "account" 51c2b37d2cSopenharmony_ci part_name = "os_account" 52c2b37d2cSopenharmony_ci} 53