1# THIS FILE IS GENERATE BY {}, PLEASE DON'T EDIT IT! 2# Copyright (C) 2021 Huawei Device Co., Ltd. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15import("//build/ohos.gni") 16import("../../../../base/config.gni") 17 18trace_file_src_dir = "${OHOS_PROFILER_DIR}/device/services/profiler_service/src" 19 20ohos_executable("trace_converter") { 21 sources = [ 22 "$trace_file_src_dir/trace_file_helper.cpp", 23 "$trace_file_src_dir/trace_file_reader.cpp", 24 "event_formatter.cpp", 25 "main.cpp", 26 "trace_converter.cpp", 27 ] 28 defines = [ "_GNU_SOURCE" ] 29 include_dirs = [ 30 "../../include", 31 "${OHOS_PROFILER_DIR}/device/base/include", 32 "$trace_file_src_dir", # for trace file reader 33 "${OHOS_PROFILER_DIR}/interfaces/kits", 34 "//utils/native/base/include", 35 ] 36 deps = [ 37 "${OHOS_PROFILER_3RDPARTY_DIR}/boringssl:crypto", 38 "${OHOS_PROFILER_DIR}/protos/services:service_types_proto", 39 "${OHOS_PROFILER_DIR}/protos/types/plugins/ftrace_data:ftrace_data_cpp", 40 "event_formatters:ftrace_event_formatters", 41 "//utils/native/base:utilsecurec", 42 ] 43 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ] 44 install_enable = false 45 subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" 46 part_name = "${OHOS_PROFILER_PART_NAME}" 47} 48