1# Copyright (c) 2021-2024 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("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/ohos.gni")
16
17config("hiview_service_ability_config") {
18  visibility = [ "*:*" ]
19
20  include_dirs = [
21    "include",
22    "$hiview_adapter/service/common/include",
23    "$hiview_base/utility/include",
24    "$hiview_service",
25  ]
26}
27
28ohos_source_set("hiview_service_impl_for_unified_collection") {
29  public_configs = [ ":hiview_service_ability_config" ]
30
31  include_dirs = [
32    "$hiview_base/include",
33    "$hiview_interfaces/inner_api/unified_collection",
34  ]
35
36  sources = [
37    "../common/src/hiview_file_info.cpp",
38    "src/hiview_remote_service.cpp",
39    "src/hiview_service_ability_proxy.cpp",
40    "src/hiview_service_cpu_delegate.cpp",
41    "src/hiview_service_memory_delegate.cpp",
42    "src/hiview_service_trace_delegate.cpp",
43  ]
44
45  external_deps = [
46    "c_utils:utils",
47    "hilog:libhilog",
48    "ipc:ipc_single",
49    "samgr:samgr_proxy",
50    "storage_service:storage_manager_acl",
51  ]
52
53  part_name = "hiview"
54
55  subsystem_name = "hiviewdfx"
56}
57
58ohos_source_set("hiview_service_impl_for_js") {
59  public_configs = [ ":hiview_service_ability_config" ]
60
61  include_dirs = [
62    "$hiview_base/include",
63    "$hiview_interfaces/inner_api/unified_collection",
64  ]
65
66  sources = [
67    "../common/src/hiview_file_info.cpp",
68    "src/hiview_service_ability_proxy.cpp",
69  ]
70
71  external_deps = [
72    "c_utils:utils",
73    "hilog:libhilog",
74    "ipc:ipc_single",
75    "safwk:system_ability_fwk",
76    "samgr:samgr_proxy",
77  ]
78
79  part_name = "hiview"
80
81  subsystem_name = "hiviewdfx"
82}
83