• 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.
13
14import("//build/ohos.gni")
15import("../../build/ts.gni")
16
17ohos_source_set("parser") {
18  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
19  part_name = "${OHOS_PROFILER_PART_NAME}"
20  sources = [
21    "bytrace_parser/bytrace_event_parser.cpp",
22    "bytrace_parser/bytrace_parser.cpp",
23    "event_parser_base.cpp",
24    "print_event_parser.cpp",
25    "thread_state_flag.cpp",
26  ]
27  deps = [
28    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/cpu_data:cpu_data_reader",
29    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/diskio_data:diskio_data_reader",
30    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/hidump_data:hidump_data_reader",
31    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/hilog_data:hilog_data_reader",
32    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/hisysevent_data:hisysevent_data_reader",
33    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/js_memory:js_memory_data_reader",
34    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/memory_data:memory_data_reader",
35    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/native_hook:native_hook_data_reader",
36    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/network_data:network_data_reader",
37    "${OHOS_TRACE_STREAMER_PROTOS_DIR}/protos/types/plugins/process_data:process_data_reader",
38    "ebpf_parser:ebpf_parser",
39  ]
40  deps += [ "htrace_pbreader_parser:htrace_pbreader_parser" ]
41
42  include_dirs = [
43    "${THIRD_PARTY}/protobuf/src",
44    "${THIRD_PARTY}/sqlite/include",
45    "${SRC}/base",
46    "${SRC}/cfg",
47    "${SRC}/trace_streamer",
48    "${SRC}/trace_data",
49    "${SRC}/include",
50    "${SRC}/filter",
51    "${SRC}",
52    ".",
53    "htrace_pbreader_parser",
54    "../proto_reader/include",
55    "${THIRD_PARTY}/bounds_checking_function/include",
56    "${THIRD_PARTY}/json/single_include/nlohmann",
57  ]
58
59  if (!is_independent_compile) {
60    configs = [ "${TS_DIR}/gn:ts_config" ]
61  }
62}
63