• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_innnerkits_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [ "${os_account_path}/frameworks/ohosaccount/native/include" ]
21
22  cflags = []
23  if (target_cpu == "arm") {
24    cflags += [ "-DBINDER_IPC_32BIT" ]
25  }
26
27  cflags += [ "-pipe" ]
28  cflags_cc = [
29    "-Wdate-time",
30    "-Wformat=2",
31    "-Wfloat-equal",
32    "-Wshadow",
33  ]
34
35  defines = [
36    "ACCOUNT_LOG_TAG = \"AppAccountFwk\"",
37    "LOG_DOMAIN = 0xD001B00",
38  ]
39}
40
41config("app_account_innerkits_public_config") {
42  visibility = [ ":*" ]
43
44  include_dirs = [
45    "${app_account_core_path}/include",
46    "${app_account_interfaces_native_path}/include",
47    "${innerkits_path}/include",
48    "${innerkits_native_path}/include",
49    "include",
50  ]
51}
52
53ohos_shared_library("app_account_innerkits") {
54  sources = [
55    "src/app_account.cpp",
56    "src/app_account_authenticator_callback_proxy.cpp",
57    "src/app_account_authenticator_callback_stub.cpp",
58    "src/app_account_authenticator_stub.cpp",
59    "src/app_account_common.cpp",
60    "src/app_account_death_recipient.cpp",
61    "src/app_account_event_listener.cpp",
62    "src/app_account_event_stub.cpp",
63    "src/app_account_info.cpp",
64    "src/app_account_manager.cpp",
65    "src/app_account_proxy.cpp",
66    "src/app_account_subscribe_info.cpp",
67    "src/app_account_subscriber.cpp",
68  ]
69
70  configs = [
71    ":app_account_innnerkits_config",
72    "${account_coverage_config_path}:coverage_flags",
73  ]
74
75  public_configs = [ ":app_account_innerkits_public_config" ]
76
77  use_exceptions = true
78
79  version_script = "libapp_account_innerkits.map"
80
81  deps = [ "${innerkits_native_path}:libaccountkits" ]
82
83  external_deps = [
84    "ability_base:want",
85    "c_utils:utils",
86    "hiviewdfx_hilog_native:libhilog",
87    "ipc:ipc_core",
88    "samgr:samgr_proxy",
89  ]
90
91  subsystem_name = "account"
92  part_name = "os_account"
93}
94