• 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_sdk_config") {
19  visibility = [ ":*" ]
20  include_dirs = [
21    "include",
22    "include/callback",
23    "${device_profile_common}/include/constants",
24    "${device_profile_common}/include/interfaces",
25    "${device_profile_common}/include/utils",
26    "//third_party/json/include",
27  ]
28}
29
30ohos_shared_library("distributed_device_profile_sdk") {
31  install_enable = true
32
33  sources = [
34    "src/callback/device_profile_load_callback.cpp",
35    "src/distributed_device_profile_client.cpp",
36    "src/distributed_device_profile_proxy.cpp",
37  ]
38
39  public_configs = [ ":distributed_device_profile_sdk_config" ]
40
41  deps = [ "${device_profile_common}:distributed_device_profile_common" ]
42
43  external_deps = [
44    "c_utils:utils",
45    "eventhandler:libeventhandler",
46    "hilog:libhilog",
47    "ipc:ipc_core",
48    "relational_store:native_rdb",
49    "samgr:samgr_proxy",
50  ]
51
52  part_name = "device_info_manager"
53  subsystem_name = "deviceprofile"
54}
55