1# Copyright (c) 2024 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") 15import("../../../os_account.gni") 16 17ohos_shared_library("cj_distributed_account_ffi") { 18 sanitize = { 19 cfi = true 20 cfi_cross_dso = true 21 debug = false 22 } 23 24 include_dirs = [ 25 "${os_account_path}/frameworks/cj/distributed_account/include", 26 "${os_account_path}/interfaces/innerkits/appaccount/native/include", 27 ] 28 29 sources = [ "./src/cj_distributed_account.cpp" ] 30 31 deps = [ 32 "${common_path}:libaccount_common", 33 "${innerkits_native_path}:libaccountkits", 34 ] 35 36 external_deps = [ 37 "ability_base:want", 38 "ability_runtime:ability_connect_callback_stub", 39 "ability_runtime:ability_manager", 40 "ability_runtime:abilitykit_native", 41 "c_utils:utils", 42 "common_event_service:cesfwk_innerkits", 43 "hilog:libhilog", 44 "ipc:ipc_single", 45 "napi:cj_bind_ffi", 46 "napi:cj_bind_native", 47 ] 48 49 innerapi_tags = [ "platformsdk" ] 50 subsystem_name = "account" 51 part_name = "os_account" 52} 53