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 24 # kernel_version = "5.10.79_aarch64" 25 kernel_version = "." 26 if (target == "test") { 27 enable_ts_utest = true 28 } else { 29 enable_ts_utest = false 30 } 31 is_openharmony = false 32} else { 33 enable_ts_utest = true 34 use_wasm = false 35 kernel_version = "." 36 is_fuzz = false 37 target = "trace_streamer" 38 is_openharmony = true 39 OHOS_FTRACE_PROTO_DIR = "//developtools/profiler/protos/types/plugins/ftrace_data/${kernel_version}" 40 OHOS_MEMORY_PROTO_DIR = 41 "//developtools/profiler/protos/types/plugins/memory_data" 42 OHOS_HILOG_PROTO_DIR = 43 "//developtools/profiler/protos/types/plugins/hilog_data" 44 OHOS_NATIVE_HOOK_PROTO_DIR = 45 "//developtools/profiler/protos/types/plugins/native_hook" 46 OHOS_HIDUMP_PROTO_DIR = 47 "//developtools/profiler/protos/types/plugins/hidump_data" 48 OHOS_SERVICE_PROTO_DIR = "//developtools/profiler/protos/services" 49 OHOS_PROTO_GEN = "//out/ohos-arm-release/gen/cpp/developtools/profiler/protos" 50} 51