• 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")
15
16import("../../../build/ts.gni")
17ohos_source_set("base_tables") {
18  subsystem_name = "developtools"
19  part_name = "smartperf_host"
20  sources = [
21    "args_table.cpp",
22    "args_table.h",
23    "data_dict_table.cpp",
24    "data_dict_table.h",
25    "data_type_table.cpp",
26    "data_type_table.h",
27    "datasource_clockid_table.cpp",
28    "datasource_clockid_table.h",
29    "meta_table.cpp",
30    "meta_table.h",
31    "range_table.cpp",
32    "range_table.h",
33    "span_join.cpp",
34    "span_join.h",
35    "stat_table.cpp",
36    "stat_table.h",
37    "symbols_table.cpp",
38    "symbols_table.h",
39    "table_base.cpp",
40    "table_base.h",
41    "trace_config_table.cpp",
42    "trace_config_table.h",
43  ]
44  include_dirs = [
45    "${THIRD_PARTY}/sqlite/include",
46    "${SRC}/base",
47    "../../parser",
48    "${SRC}/trace_data",
49    "${SRC}/include",
50    "${SRC}",
51    "${THIRD_PARTY}/protobuf/src",
52  ]
53  if (enable_ts_utest && !use_wasm) {
54    cflags = [
55      "-fprofile-arcs",
56      "-ftest-coverage",
57    ]
58    ldflags = [
59      "-fprofile-arcs",
60      "-ftest-coverage",
61      "--coverage",
62    ]
63    if (is_test) {
64      cflags += [ "-D IS_UT" ]
65    }
66  }
67}
68