• 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("//build/ohos.gni")
15import("//build/ohos_var.gni")
16
17device_profile_path = "//foundation/deviceprofile/device_info_manager"
18device_profile_service = "${device_profile_path}/services/core"
19
20config("distributed_device_profile_client_config") {
21  visibility = [ ":*" ]
22  include_dirs = [
23    "include",
24    "${device_profile_path}/common/include",
25    "//third_party/json/include",
26  ]
27}
28
29ohos_shared_library("distributed_device_profile_client") {
30  install_enable = true
31
32  sources = [
33    "${device_profile_path}/common/src/device_profile_utils.cpp",
34    "${device_profile_service}/src/profile_change_notification.cpp",
35    "${device_profile_service}/src/service_characteristic_profile.cpp",
36    "${device_profile_service}/src/subscribemanager/subscribe_info.cpp",
37    "${device_profile_service}/src/sync_options.cpp",
38    "src/distributed_device_profile_client.cpp",
39    "src/distributed_device_profile_proxy.cpp",
40    "src/profile_event_notifier_stub.cpp",
41  ]
42
43  public_configs = [
44    ":distributed_device_profile_client_config",
45    "//foundation/deviceprofile/device_info_manager/test/resource:coverage_flags",
46  ]
47
48  external_deps = [
49    "c_utils:utils",
50    "eventhandler:libeventhandler",
51    "hiviewdfx_hilog_native:libhilog",
52    "ipc:ipc_core",
53    "samgr:samgr_proxy",
54  ]
55
56  part_name = "device_info_manager"
57  subsystem_name = "deviceprofile"
58}
59