• 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("osaccountinterface_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "${common_path}/account_error/include",
21    "${common_path}/database/include",
22    "${os_account_interfaces_native_path}/include",
23    "//third_party/json/include",
24    "//commonlibrary/c_utils/base/include",
25  ]
26  cflags = []
27  if (target_cpu == "arm") {
28    cflags += [ "-DBINDER_IPC_32BIT" ]
29  }
30  cflags += [ "-pipe" ]
31}
32
33ohos_shared_library("os_account_innerkits") {
34  sources = [
35    "src/os_account_info.cpp",
36    "src/os_account_manager.cpp",
37    "src/os_account_subscribe_info.cpp",
38    "src/os_account_subscriber.cpp",
39  ]
40
41  defines = [
42    "ACCOUNT_LOG_TAG = \"OsAccountNativeFwk\"",
43    "LOG_DOMAIN = 0xD001B00",
44  ]
45
46  configs = [
47    ":osaccountinterface_config",
48    "${account_coverage_config_path}:coverage_flags",
49  ]
50  public_configs = [ ":osaccountinterface_config" ]
51  use_exceptions = true
52
53  deps = [ "${os_account_core_path}:os_account_core" ]
54
55  external_deps = [
56    "c_utils:utils",
57    "hiviewdfx_hilog_native:libhilog",
58  ]
59  subsystem_name = "account"
60  part_name = "os_account"
61}
62