• 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")
16ohos_source_set("base") {
17  subsystem_name = "developtools"
18  part_name = "smartperf_host"
19  deps = [
20    ":base_parser",
21    ":base_table",
22    ":ibase",
23  ]
24  public_deps = [ "sqlite_ext:sqliteext" ]
25  include_dirs = [ "../include" ]
26  sources = [
27    "clock_filter.cpp",
28    "codec_cov.cpp",
29    "file.cpp",
30    "log.cpp",
31    "parting_string.cpp",
32    "string_help.cpp",
33  ]
34  if (enable_ts_utest && !use_wasm) {
35    cflags = [
36      "-fprofile-arcs",
37      "-ftest-coverage",
38    ]
39    ldflags = [
40      "-fprofile-arcs",
41      "-ftest-coverage",
42      "--coverage",
43    ]
44  }
45}
46ohos_source_set("string_help") {
47  subsystem_name = "developtools"
48  part_name = "smartperf_host"
49  sources = [ "string_help.cpp" ]
50}
51ohos_source_set("ibase") {
52  subsystem_name = "developtools"
53  part_name = "smartperf_host"
54  sources = [
55    "codec_cov.h",
56    "file.h",
57    "log.h",
58    "parting_string.h",
59    "string_to_numerical.h",
60    "ts_common.cpp",
61  ]
62  include_dirs = []
63  public_deps = []
64  deps = []
65  sources += [ "/usr/x86_64-w64-mingw32/include/windows.h" ]
66}
67ohos_source_set("base_parser") {
68  subsystem_name = "developtools"
69  part_name = "smartperf_host"
70  sources = [
71    "htrace_plugin_time_parser.cpp",
72    "htrace_plugin_time_parser.h",
73  ]
74  include_dirs = []
75  public_deps = []
76  deps = []
77}
78ohos_source_set("base_table") {
79  subsystem_name = "developtools"
80  part_name = "smartperf_host"
81  sources = [
82    "filter_constraints.cpp",
83    "index_map.cpp",
84  ]
85  include_dirs = [ "${THIRD_PARTY}/sqlite/include" ]
86  public_deps = []
87  deps = []
88}
89