• 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.
13
14import("//build/ohos.gni")
15import("//foundation/aafwk/standard/aafwk.gni")
16
17config("dataobs_manager_public_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "include/",
21    "//utils/native/base/include",
22    "//utils/system/safwk/native/include",
23    "//foundation/aafwk/standard/frameworks/kits/ability/native/include",
24    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
25    "//foundation/aafwk/standard/services/dataobsmgr/include",
26  ]
27  cflags = []
28  if (target_cpu == "arm") {
29    cflags += [ "-DBINDER_IPC_32BIT" ]
30  }
31}
32
33ohos_shared_library("dataobs_manager") {
34  sources = [
35    "${services_path}/dataobsmgr/src/data_ability_observer_proxy.cpp",
36    "${services_path}/dataobsmgr/src/data_ability_observer_stub.cpp",
37    "${services_path}/dataobsmgr/src/dataobs_mgr_client.cpp",
38    "${services_path}/dataobsmgr/src/dataobs_mgr_proxy.cpp",
39  ]
40
41  public_configs = [
42    ":dataobs_manager_public_config",
43    "${services_path}/dataobsmgr:dataobsms_config",
44  ]
45
46  deps = [
47    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
48    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
49    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
50    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
51    "//utils/native/base:utils",
52  ]
53
54  external_deps = [
55    "hiviewdfx_hilog_native:libhilog",
56    "ipc:ipc_core",
57  ]
58
59  subsystem_name = "aafwk"
60  part_name = "aafwk_standard"
61}
62