• 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  visibility +=
20      [ "${ability_runtime_test_path}/unittest/connection_observer_test/*" ]
21  include_dirs = [
22    "include",
23    "${ability_runtime_services_path}/common/include",
24    "${safwk_path}/native/include",
25    "${bundlefwk_inner_api_path}/appexecfwk_base/include",
26  ]
27  cflags = []
28  if (target_cpu == "arm") {
29    cflags += [ "-DBINDER_IPC_32BIT" ]
30  }
31}
32
33ohos_shared_library("connection_obs_manager") {
34  sources = [
35    "src/connection_data.cpp",
36    "src/connection_observer_client.cpp",
37    "src/connection_observer_client_impl.cpp",
38    "src/connection_observer_proxy.cpp",
39    "src/connection_observer_stub.cpp",
40    "src/connection_observer_stub_impl.cpp",
41    "src/dlp_connection_info.cpp",
42    "src/dlp_state_data.cpp",
43    "src/service_proxy_adapter.cpp",
44  ]
45
46  public_configs = [ ":connection_obs_manager_public_config" ]
47
48  deps = []
49
50  external_deps = [
51    "c_utils:utils",
52    "hilog:libhilog",
53    "ipc:ipc_core",
54    "samgr:samgr_proxy",
55  ]
56
57  innerapi_tags = [ "platformsdk" ]
58  subsystem_name = "ability"
59  part_name = "ability_runtime"
60}
61