1# Copyright (c) 2021-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") 15import("../../../../os_account.gni") 16 17ohos_shared_library("distributedaccount") { 18 include_dirs = [ 19 "include", 20 "${os_account_path}/interfaces/innerkits/ohosaccount/native/include", 21 "${os_account_path}/interfaces/innerkits/osaccount/native/include", 22 ] 23 24 cflags = [ 25 "-fPIC", 26 "-g3", 27 "-pipe", 28 ] 29 cflags_cc = [ 30 "-Wdate-time", 31 "-Wformat=2", 32 "-Wfloat-equal", 33 "-Wshadow", 34 ] 35 36 sources = [ "src/napi_distributed_account.cpp" ] 37 38 defines = [ 39 "ACCOUNT_LOG_TAG = \"DistributedAccountJsKit\"", 40 "LOG_DOMAIN = 0xD001B00", 41 ] 42 43 deps = [ 44 "${account_napi_common_path}:account_napi_common", 45 "${innerkits_native_path}:libaccountkits", 46 ] 47 48 relative_install_dir = "module/account" 49 50 external_deps = [ 51 "ability_base:want", 52 "ability_runtime:abilitykit_native", 53 "ability_runtime:extensionkit_native", 54 "ability_runtime:napi_common", 55 "ability_runtime:wantagent_innerkits", 56 "c_utils:utils", 57 "hilog:libhilog", 58 "napi:ace_napi", 59 ] 60 61 if (ohos_indep_compiler_enable) { 62 external_deps += [ "ipc:ipc_core" ] 63 } 64 65 part_name = "os_account" 66 subsystem_name = "account" 67} 68