• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) Huawei Technologies Co., Ltd. 2023. 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.
13OHOS_PROTO_DIR = ""
14THIRD_PARTY = "//third_party"
15SRC = "//src"
16if (target_os == "linux" || target_os == "macx" || target_os == "windows") {
17  OHOS_FTRACE_PROTO_DIR = "//src/multi_platform"
18  OHOS_MEMORY_PROTO_DIR = "//src/multi_platform"
19  OHOS_HILOG_PROTO_DIR = "//src/multi_platform"
20  OHOS_NATIVE_HOOK_PROTO_DIR = "//src/multi_platform"
21  OHOS_HIDUMP_PROTO_DIR = "//src/multi_platform"
22  OHOS_SERVICE_PROTO_DIR = "//src/multi_platform"
23  OHOS_PROTO_GEN = "//third_party/protogen"
24
25  # kernel_version = "5.10.79_aarch64"
26  kernel_version = "."
27  if (target == "test") {
28    enable_ts_utest = true
29  } else {
30    enable_ts_utest = false
31  }
32  is_openharmony = false
33} else {
34  enable_ts_utest = true
35  use_wasm = false
36  kernel_version = "."
37  is_fuzz = false
38  target = "trace_streamer"
39  is_openharmony = true
40  OHOS_FTRACE_PROTO_DIR = "//developtools/profiler/protos/types/plugins/ftrace_data/${kernel_version}"
41  OHOS_MEMORY_PROTO_DIR =
42      "//developtools/profiler/protos/types/plugins/memory_data"
43  OHOS_HILOG_PROTO_DIR =
44      "//developtools/profiler/protos/types/plugins/hilog_data"
45  OHOS_NATIVE_HOOK_PROTO_DIR =
46      "//developtools/profiler/protos/types/plugins/native_hook"
47  OHOS_HIDUMP_PROTO_DIR =
48      "//developtools/profiler/protos/types/plugins/hidump_data"
49  OHOS_SERVICE_PROTO_DIR = "//developtools/profiler/protos/services"
50  OHOS_PROTO_GEN = "//out/ohos-arm-release/gen/cpp/developtools/profiler/protos"
51}
52