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("//build/ohos.gni")
15import("../../../../os_account.gni")
16
17config("app_account_service_core_config") {
18  cflags = [ "-pipe" ]
19  cflags_cc = [
20    "-Wdate-time",
21    "-Wformat=2",
22    "-Wfloat-equal",
23    "-Wshadow",
24  ]
25}
26
27config("app_account_service_core_public_config") {
28  visibility = [ ":*" ]
29
30  include_dirs = [
31    "${services_path}/accountmgr/include",
32    "${services_path}/accountmgr/include/appaccount",
33  ]
34}
35
36ohos_shared_library("app_account_service_core") {
37  branch_protector_ret = "pac_ret"
38
39  sanitize = {
40    cfi = true
41    cfi_cross_dso = true
42    debug = false
43  }
44
45  sources = [
46    "app_account_event_proxy.cpp",
47    "app_account_stub.cpp",
48  ]
49
50  defines = [
51    "ACCOUNT_LOG_TAG = \"AppAccountService\"",
52    "LOG_DOMAIN = 0xD001B00",
53  ]
54
55  configs = [ ":app_account_service_core_config" ]
56
57  public_configs = [ ":app_account_service_core_public_config" ]
58
59  deps = [
60    "${app_account_innerkits_native_path}:app_account_innerkits",
61    "${common_path}:libaccount_common",
62  ]
63
64  external_deps = [
65    "ability_base:want",
66    "c_utils:utils",
67    "hilog:libhilog",
68    "ipc:ipc_single",
69  ]
70
71  subsystem_name = "account"
72  part_name = "os_account"
73}
74