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("app_account_service_core_config") { 18 include_dirs = [ 19 "./include", 20 "./include/appaccount", 21 "${app_account_innerkits_native_path}/include", 22 "${app_account_kits_path}/include", 23 "${common_path}/log/include", 24 "${common_path}/perf_stat/include", 25 "${common_path}/account_error/include", 26 "${innerkits_path}/include", 27 "//foundation/arkui/napi/interfaces/kits", 28 "//third_party/json/include", 29 "//commonlibrary/c_utils/base/include", 30 "//utils/system/safwk/native/include", 31 ] 32 33 cflags = [ "-pipe" ] 34 cflags_cc = [ 35 "-Wdate-time", 36 "-Wformat=2", 37 "-Wfloat-equal", 38 "-Wshadow", 39 ] 40} 41 42config("app_account_service_core_public_config") { 43 visibility = [ ":*" ] 44 45 include_dirs = [ 46 "${services_path}/accountmgr/include", 47 "${services_path}/accountmgr/include/appaccount", 48 ] 49} 50 51ohos_shared_library("app_account_service_core") { 52 sources = [ 53 "app_account_event_proxy.cpp", 54 "app_account_stub.cpp", 55 ] 56 57 defines = [ 58 "ACCOUNT_LOG_TAG = \"AppAccountService\"", 59 "LOG_DOMAIN = 0xD001B00", 60 ] 61 62 configs = [ 63 ":app_account_service_core_config", 64 "${account_coverage_config_path}:coverage_flags", 65 ] 66 67 public_configs = [ ":app_account_service_core_public_config" ] 68 69 deps = [ "${app_account_innerkits_native_path}:app_account_innerkits" ] 70 71 external_deps = [ 72 "ability_base:want", 73 "c_utils:utils", 74 "hiviewdfx_hilog_native:libhilog", 75 "ipc:ipc_core", 76 ] 77 78 part_name = "os_account" 79} 80