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