• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
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("../../base/config.gni")
16
17ohos_source_set("hiprofiler_plugin_service") {
18  part_name = "${OHOS_PROFILER_PART_NAME}"
19  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
20  public_deps = [
21    "${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
22    "${OHOS_PROFILER_DIR}/device/services/shared_memory:shared_memory",
23    "${OHOS_PROFILER_DIR}/protos/services:plugin_service_proto",
24    "${OHOS_PROFILER_DIR}/protos/services:profiler_service_all_type_source",
25  ]
26  include_dirs = [
27    "include",
28    "${OHOS_PROFILER_DIR}/device/services/ipc/include",
29    "${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
30    "${OHOS_PROFILER_DIR}/device/services/profiler_service/include",
31  ]
32  sources = [
33    "src/plugin_command_builder.cpp",
34    "src/plugin_service.cpp",
35    "src/plugin_service_impl.cpp",
36    "src/plugin_session.cpp",
37    "src/plugin_session_manager.cpp",
38  ]
39  public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
40  deps = [ "../../base:hiprofiler_base" ]
41  if (current_toolchain != host_toolchain) {
42    external_deps = [
43      "bounds_checking_function:libsec_shared",
44      "c_utils:utils",
45      "hilog:libhilog_base",
46      "openssl:libcrypto_shared",
47      "protobuf:protobuf_lite",
48    ]
49  }
50}
51