• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2023 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
17ohos_shared_library("distributedaccount") {
18  branch_protector_ret = "pac_ret"
19
20  sanitize = {
21    cfi = true
22    cfi_cross_dso = true
23    debug = false
24  }
25
26  include_dirs = [
27    "include",
28    "${os_account_path}/interfaces/innerkits/ohosaccount/native/include",
29    "${os_account_path}/interfaces/innerkits/osaccount/native/include",
30  ]
31
32  cflags = [
33    "-fPIC",
34    "-g3",
35    "-pipe",
36  ]
37  cflags_cc = [
38    "-Wdate-time",
39    "-Wformat=2",
40    "-Wfloat-equal",
41    "-Wshadow",
42  ]
43
44  configs = [ "${account_coverage_config_path}:coverage_flags" ]
45
46  sources = [ "src/napi_distributed_account.cpp" ]
47
48  defines = [
49    "ACCOUNT_LOG_TAG = \"DistributedAccountJsKit\"",
50    "LOG_DOMAIN = 0xD001B00",
51  ]
52
53  deps = [
54    "${account_napi_common_path}:account_napi_common",
55    "${innerkits_native_path}:libaccountkits",
56  ]
57
58  relative_install_dir = "module/account"
59
60  external_deps = [
61    "ability_base:want",
62    "ability_runtime:abilitykit_native",
63    "ability_runtime:napi_common",
64    "ability_runtime:wantagent_innerkits",
65    "c_utils:utils",
66    "hilog:libhilog",
67    "napi:ace_napi",
68  ]
69
70  part_name = "os_account"
71  subsystem_name = "account"
72}
73