• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("domain_account_innnerkits_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "include",
22    "${domain_account_interfaces_native_path}/include",
23    "${os_account_interfaces_native_path}/include",
24  ]
25
26  cflags = []
27  if (target_cpu == "arm") {
28    cflags += [ "-DBINDER_IPC_32BIT" ]
29  }
30
31  cflags += [ "-pipe" ]
32  cflags_cc = [
33    "-Wdate-time",
34    "-Wformat=2",
35    "-Wfloat-equal",
36    "-Wshadow",
37  ]
38
39  defines = [
40    "ACCOUNT_LOG_TAG = \"DomainAccountFwk\"",
41    "LOG_DOMAIN = 0xD001B00",
42  ]
43}
44
45config("domain_account_innerkits_public_config") {
46  visibility = [ ":*" ]
47
48  include_dirs = [
49    "${domain_account_framework_path}/include",
50    "${domain_account_interfaces_native_path}/include",
51    "${os_account_interfaces_native_path}/include",
52  ]
53}
54
55ohos_shared_library("domain_account_innerkits") {
56  sources = [
57    "src/domain_account_client.cpp",
58    "src/domain_account_plugin_service.cpp",
59    "src/domain_account_plugin_stub.cpp",
60    "src/domain_account_proxy.cpp",
61    "src/domain_auth_callback_client.cpp",
62    "src/domain_auth_callback_proxy.cpp",
63    "src/domain_auth_callback_service.cpp",
64    "src/domain_auth_callback_stub.cpp",
65  ]
66
67  configs = [ ":domain_account_innnerkits_config" ]
68
69  public_configs = [ ":domain_account_innerkits_public_config" ]
70
71  deps = [
72    "${common_path}:libaccount_common",
73    "${innerkits_native_path}:libaccountkits",
74  ]
75
76  external_deps = [
77    "c_utils:utils",
78    "hiviewdfx_hilog_native:libhilog",
79    "ipc:ipc_core",
80  ]
81
82  subsystem_name = "account"
83  part_name = "os_account"
84}
85