• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("../../base/config.gni")
16
17ohos_source_set("hiprofiler_plugin_service") {
18  part_name = "profiler"
19  public_deps = [
20    "${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
21    "${OHOS_PROFILER_DIR}/device/services/shared_memory:shared_memory",
22    "${OHOS_PROFILER_DIR}/protos/services:plugin_service_proto",
23    "${OHOS_PROFILER_DIR}/protos/services:profiler_service_all_type_source",
24  ]
25  include_dirs = [
26    "include",
27    "${OHOS_PROFILER_DIR}/device/services/ipc/include",
28    "${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
29    "${OHOS_PROFILER_DIR}/device/services/profiler_service/include",
30  ]
31  sources = [
32    "src/plugin_command_builder.cpp",
33    "src/plugin_service.cpp",
34    "src/plugin_service_impl.cpp",
35    "src/plugin_session.cpp",
36    "src/plugin_session_manager.cpp",
37  ]
38  public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
39  deps = [ "../../base:hiprofiler_base" ]
40  if (current_toolchain != host_toolchain) {
41    if (build_l2) {
42      external_deps = [ "shared_library:libhilog" ]
43    } else {
44      external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
45    }
46  }
47}
48