• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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.
13import("//build/ohos.gni")
14import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni")
15
16ohos_static_library("distributeddata_account_static") {
17  sources = [
18    "src/account_delegate.cpp",
19    "src/account_delegate_impl.cpp",
20  ]
21
22  include_dirs = [
23    "../include/account",
24    "../include/autils",
25    "../include/log",
26    "../include/permission",
27    "../include/utils",
28    "./src",
29    "//commonlibrary/c_utils/base/include",
30    "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include",
31    "//foundation/distributeddatamgr/kv_store/frameworks/common",
32    "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include",
33    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
34  ]
35
36  cflags_cc = [ "-fvisibility=hidden" ]
37
38  remove_configs = [ "//build/config/compiler:no_exceptions" ]
39
40  configs = [ "//build/config/compiler:exceptions" ]
41
42  external_deps = [
43    "ability_base:want",
44    "c_utils:utils",
45    "common_event_service:cesfwk_innerkits",
46    "hiviewdfx_hilog_native:libhilog",
47  ]
48
49  if (os_account_part_is_enabled) {
50    sources += [ "src/account_delegate_normal_impl.cpp" ]
51    cflags_cc += [ "-DOS_ACCOUNT_PART_IS_ENABLED" ]
52    external_deps += [
53      "access_token:libaccesstoken_sdk",
54      "os_account:libaccountkits",
55      "os_account:os_account_innerkits",
56    ]
57  } else {
58    sources += [ "src/account_delegate_default_impl.cpp" ]
59  }
60  subsystem_name = "distributeddatamgr"
61  part_name = "datamgr_service"
62}
63