• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("//foundation/ability/ability_runtime/ability_runtime.gni")
16
17config("connection_obs_manager_public_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "include",
21    "${ability_runtime_services_path}/common/include",
22    "//utils/system/safwk/native/include",
23    "${bundlefwk_inner_api_path}/appexecfwk_base/include",
24  ]
25  cflags = []
26  if (target_cpu == "arm") {
27    cflags += [ "-DBINDER_IPC_32BIT" ]
28  }
29}
30
31ohos_shared_library("connection_obs_manager") {
32  sources = [
33    "src/connection_data.cpp",
34    "src/connection_observer_client.cpp",
35    "src/connection_observer_client_impl.cpp",
36    "src/connection_observer_proxy.cpp",
37    "src/connection_observer_stub.cpp",
38    "src/connection_observer_stub_impl.cpp",
39    "src/dlp_connection_info.cpp",
40    "src/dlp_state_data.cpp",
41    "src/service_proxy_adapter.cpp",
42  ]
43
44  public_configs = [ ":connection_obs_manager_public_config" ]
45
46  deps = []
47
48  external_deps = [
49    "c_utils:utils",
50    "hiviewdfx_hilog_native:libhilog",
51    "ipc:ipc_core",
52    "samgr:samgr_proxy",
53  ]
54
55  subsystem_name = "ability"
56  part_name = "ability_runtime"
57}
58