• 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.
13OHOS_PROTO_DIR = ""
14kernel_version = "."
15if (target_os == "linux" || target_os == "windows" || target_os == "macx") {
16  OHOS_FTRACE_PROTO_DIR = "//src/multi_platform"
17  OHOS_MEMORY_PROTO_DIR = "//src/multi_platform"
18  OHOS_SERVICE_PROTO_DIR = "//src/multi_platform"
19  OHOS_PROTO_GEN = "//third_party/protogen"
20  if (target == "test") {
21    OHOS_MEMORY_PROTO_DIR = "$OHOS_PROTO_GEN/types/plugins/memory_data"
22    OHOS_NETWORK_PROTO_DIR = "$OHOS_PROTO_GEN/types/plugins/network_data"
23    OHOS_DISKIO_PROTO_DIR = "$OHOS_PROTO_GEN/types/plugins/diskio_data"
24    OHOS_CPUDATA_PROTO_DIR = "$OHOS_PROTO_GEN/types/plugins/cpu_data"
25    OHOS_PROCESS_PROTO_DIR = "$OHOS_PROTO_GEN/types/plugins/process_data"
26    OHOS_HISYSEVENT_PROTO_DIR = "$OHOS_PROTO_GEN/types/plugins/hisysevent_data"
27    enable_ts_utest = true
28    OHOS_HILOG_PROTO_DIR = "//src/multi_platform"
29    OHOS_NATIVE_HOOK_PROTO_DIR = "//src/multi_platform"
30    OHOS_HIDUMP_PROTO_DIR = "//src/multi_platform"
31  }
32} else {
33  use_wasm = false
34  OHOS_FTRACE_PROTO_DIR =
35      "//developtools/profiler/protos/types/plugins/ftrace_data"
36  OHOS_MEMORY_PROTO_DIR =
37      "//developtools/profiler/protos/types/plugins/memory_data"
38  OHOS_HILOG_PROTO_DIR =
39      "//developtools/profiler/protos/types/plugins/hilog_data"
40  OHOS_NATIVE_HOOK_PROTO_DIR =
41      "//developtools/profiler/protos/types/plugins/native_hook"
42  OHOS_HIDUMP_PROTO_DIR =
43      "//developtools/profiler/protos/types/plugins/hidump_data"
44  OHOS_SERVICE_PROTO_DIR = "//developtools/profiler/protos/services"
45  OHOS_PROTO_GEN =
46      "//developtools/profiler/trace_analyzer/third_party/protogen/"
47  enable_ts_utest = true
48}
49