• 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.
13
14import("//build/ohos.gni")
15import("../../../build/ts.gni")
16config("base_tables_cfg") {
17  include_dirs = [
18    "include",
19    "${THIRD_PARTY}/sqlite/include",
20    "${SRC}/base",
21    "../../parser",
22    "${SRC}/trace_data",
23    "${SRC}/include",
24    "${SRC}",
25    "${SRC}/cfg",
26    "${THIRD_PARTY}/protobuf/src",
27    "${THIRD_PARTY}/bounds_checking_function/include",
28  ]
29  include_dirs += [
30    "${SRC}/trace_data/trace_stdtype",
31    "${SRC}/trace_data/trace_stdtype/ftrace",
32    "${SRC}/trace_data/trace_stdtype/ftrace/template",
33    "${SRC}/trace_data/trace_stdtype/hilog",
34    "${SRC}/trace_data/trace_stdtype/hiperf",
35    "${SRC}/trace_data/trace_stdtype/hisysevent",
36    "${SRC}/trace_data/trace_stdtype/htrace",
37    "${SRC}/trace_data/trace_stdtype/measure",
38    "${SRC}/trace_data/trace_stdtype/xpower",
39  ]
40}
41ohos_source_set("base_tables") {
42  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
43  part_name = "${OHOS_PROFILER_PART_NAME}"
44  sources = [
45    "args_table.cpp",
46    "data_dict_table.cpp",
47    "data_type_table.cpp",
48    "datasource_clockid_table.cpp",
49    "device_info_table.cpp",
50    "meta_table.cpp",
51    "range_table.cpp",
52    "span_join.cpp",
53    "stat_table.cpp",
54    "symbols_table.cpp",
55    "table_base.cpp",
56    "trace_config_table.cpp",
57  ]
58  public_configs = [ ":base_tables_cfg" ]
59  if (!is_independent_compile) {
60    configs = [ "${TS_DIR}/gn:ts_config" ]
61  }
62}
63