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="//third_party/protogen" 17 OHOS_FTRACE_PROTO_DIR = "//src/multi_platform" 18 19 # OHOS_MEMORY_PROTO_DIR="//third_party/protogen" 20 OHOS_MEMORY_PROTO_DIR = "//src/multi_platform" 21 22 # OHOS_HILOG_PROTO_DIR="//third_party/protogen" 23 OHOS_HILOG_PROTO_DIR = "//src/multi_platform" 24 25 # OHOS_NATIVE_HOOK_PROTO_DIR="//third_party/protogen" 26 OHOS_NATIVE_HOOK_PROTO_DIR = "//src/multi_platform" 27 28 # OHOS_HIDUMP_PROTO_DIR="//third_party/protogen" 29 OHOS_HIDUMP_PROTO_DIR = "//src/multi_platform" 30 31 # OHOS_SERVICE_PROTO_DIR = "//third_party/protogen" 32 OHOS_SERVICE_PROTO_DIR = "//src/multi_platform" 33 OHOS_PROTO_GEN = "//third_party/protogen" 34 35 # kernel_version = "5.10.79_aarch64" 36 kernel_version = "." 37 if (target == "test") { 38 enable_ts_utest = true 39 } else { 40 enable_ts_utest = false 41 } 42 is_openharmony = false 43} else { 44 enable_ts_utest = true 45 use_wasm = false 46 kernel_version = "." 47 is_fuzz = false 48 target = "trace_streamer" 49 is_openharmony = true 50 OHOS_FTRACE_PROTO_DIR = "//developtools/profiler/protos/types/plugins/ftrace_data/${kernel_version}" 51 OHOS_MEMORY_PROTO_DIR = 52 "//developtools/profiler/protos/types/plugins/memory_data" 53 OHOS_HILOG_PROTO_DIR = 54 "//developtools/profiler/protos/types/plugins/hilog_data" 55 OHOS_NATIVE_HOOK_PROTO_DIR = 56 "//developtools/profiler/protos/types/plugins/native_hook" 57 OHOS_HIDUMP_PROTO_DIR = 58 "//developtools/profiler/protos/types/plugins/hidump_data" 59 OHOS_SERVICE_PROTO_DIR = "//developtools/profiler/protos/services" 60 OHOS_PROTO_GEN = "//out/ohos-arm-release/gen/cpp/developtools/profiler/protos" 61} 62