• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("../../../dmsfwk.gni")
16
17config("dms_sdk_public_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "${ams_path}/interfaces/inner_api/ability_manager/include/",
21    "${ams_path}/services/common/include/",
22    "${dms_path}/interfaces/innerkits/distributed_event/include/",
23    "${dms_path}/services/dtbabilitymgr/include/",
24    "${dms_path}/services/dtbschedmgr/include/",
25    "${dms_path}/utils/native/include/",
26  ]
27
28  cflags = []
29  if (target_cpu == "arm") {
30    cflags += [ "-DBINDER_IPC_32BIT" ]
31  }
32}
33
34ohos_shared_library("distributed_sdk") {
35  branch_protector_ret = "pac_ret"
36  sanitize = {
37    cfi = true
38    cfi_cross_dso = true
39    debug = false
40  }
41
42  sources = [
43    "${dms_path}/interfaces/innerkits/distributed_event/src/dms_client.cpp",
44    "${dms_path}/interfaces/innerkits/distributed_event/src/dms_handler.cpp",
45    "${dms_path}/interfaces/innerkits/distributed_event/src/dms_listener_stub.cpp",
46    "${dms_path}/interfaces/innerkits/distributed_event/src/dms_sa_client.cpp",
47  ]
48
49  public_configs = [
50    ":dms_sdk_public_config",
51    "${dms_path}/services/dtbschedmgr/test/resource:coverage_flags",
52  ]
53
54  external_deps = [
55    "c_utils:utils",
56    "hilog:libhilog",
57    "ipc:ipc_core",
58    "samgr:samgr_proxy",
59  ]
60
61  subsystem_name = "ability"
62  innerapi_tags = [ "platformsdk" ]
63  part_name = "dmsfwk"
64}
65