• 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("//build/ohos_var.gni")
16import("//foundation/deviceprofile/device_info_manager/deviceprofile.gni")
17
18config("distributed_device_profile_common_config") {
19  visibility = [ ":*" ]
20  include_dirs = [
21    "include/interfaces",
22    "include/constants",
23    "include/utils",
24    "//third_party/json/include",
25  ]
26}
27
28ohos_shared_library("distributed_device_profile_common") {
29  install_enable = true
30
31  sources = [
32    "src/interfaces/access_control_profile.cpp",
33    "src/interfaces/accessee.cpp",
34    "src/interfaces/accesser.cpp",
35    "src/interfaces/characteristic_profile.cpp",
36    "src/interfaces/device_profile.cpp",
37    "src/interfaces/dp_subscribe_info.cpp",
38    "src/interfaces/dp_sync_options.cpp",
39    "src/interfaces/profile_change_listener_proxy.cpp",
40    "src/interfaces/profile_change_listener_stub.cpp",
41    "src/interfaces/service_profile.cpp",
42    "src/interfaces/sync_completed_callback_proxy.cpp",
43    "src/interfaces/sync_completed_callback_stub.cpp",
44    "src/interfaces/trust_device_profile.cpp",
45    "src/utils/content_sensor_manager_utils.cpp",
46    "src/utils/ipc_utils.cpp",
47    "src/utils/profile_utils.cpp",
48  ]
49
50  public_configs = [ ":distributed_device_profile_common_config" ]
51
52  external_deps = [
53    "access_token:libaccesstoken_sdk",
54    "c_utils:utils",
55    "device_manager:devicemanagersdk",
56    "dmsfwk:common_sdk",
57    "eventhandler:libeventhandler",
58    "hilog:libhilog",
59    "init:libbegetutil",
60    "ipc:ipc_core",
61    "relational_store:native_rdb",
62    "safwk:system_ability_fwk",
63    "samgr:samgr_proxy",
64  ]
65
66  part_name = "device_info_manager"
67  subsystem_name = "deviceprofile"
68}
69