1# Copyright (c) 2021-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/account/os_account/os_account.gni") 15import("//build/ohos.gni") 16 17config("public_account_config") { 18 include_dirs = [ 19 "${innerkits_path}/include", 20 "${innerkits_native_path}/include", 21 ] 22} 23 24config("accountkits_config") { 25 defines = [ 26 "ACCOUNT_LOG_TAG = \"DistributedAccountFwk\"", 27 "LOG_DOMAIN = 0xD001B00", 28 ] 29 include_dirs = [ 30 "include", 31 "${innerkits_native_path}/include", 32 "${common_path}/perf_stat/include", 33 "${common_path}/account_error/include", 34 "${innerkits_path}/include", 35 "//commonlibrary/c_utils/base/include", 36 "//utils/system/safwk/native/include", 37 ] 38} 39 40config("accountkits_all_dependent_configs") { 41 include_dirs = [ 42 "${common_path}/log/include", 43 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 44 "//third_party/json/include", 45 ] 46} 47 48ohos_shared_library("libaccountkits") { 49 sources = [ 50 "src/account_info_parcel.cpp", 51 "src/account_proxy.cpp", 52 "src/ohos_account_kits.cpp", 53 "src/ohos_account_kits_impl.cpp", 54 ] 55 56 cflags = [ "-pipe" ] 57 cflags_cc = [ 58 "-Wdate-time", 59 "-Wformat=2", 60 "-Wfloat-equal", 61 "-Wshadow", 62 ] 63 64 configs = [ 65 ":accountkits_config", 66 "${account_coverage_config_path}:coverage_flags", 67 ] 68 69 public_configs = [ ":public_account_config" ] 70 71 all_dependent_configs = [ ":accountkits_all_dependent_configs" ] 72 73 deps = [ "${common_path}:libaccount_common" ] 74 75 external_deps = [ 76 "ability_base:want", 77 "hiviewdfx_hilog_native:libhilog", 78 "ipc:ipc_core", 79 "samgr:samgr_proxy", 80 ] 81 part_name = "os_account" 82} 83