• 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("js_memory_tables") {
18  subsystem_name = "developtools"
19  part_name = "smartperf_host"
20  sources = [
21    "appname_table.cpp",
22    "appname_table.h",
23    "js_config_table.cpp",
24    "js_config_table.h",
25    "js_cpu_profiler_node_table.cpp",
26    "js_cpu_profiler_node_table.h",
27    "js_cpu_profiler_sample_table.cpp",
28    "js_cpu_profiler_sample_table.h",
29    "js_heap_edges_table.cpp",
30    "js_heap_edges_table.h",
31    "js_heap_files_table.cpp",
32    "js_heap_files_table.h",
33    "js_heap_info_table.cpp",
34    "js_heap_info_table.h",
35    "js_heap_location_table.cpp",
36    "js_heap_location_table.h",
37    "js_heap_nodes_table.cpp",
38    "js_heap_nodes_table.h",
39    "js_heap_sample_table.cpp",
40    "js_heap_sample_table.h",
41    "js_heap_string_table.cpp",
42    "js_heap_string_table.h",
43    "js_heap_trace_function_info_table.cpp",
44    "js_heap_trace_function_info_table.h",
45    "js_heap_trace_node_table.cpp",
46    "js_heap_trace_node_table.h",
47  ]
48  include_dirs = [
49    "../base",
50    "${THIRD_PARTY}/sqlite/include",
51    "${SRC}/base",
52    "../../parser",
53    "${SRC}/trace_data",
54    "${SRC}/include",
55    "${SRC}",
56    "${THIRD_PARTY}/protobuf/src",
57    "${THIRD_PARTY}/bounds_checking_function/include",
58  ]
59
60  if (!is_independent_compile) {
61    configs = [ "${TS_DIR}/gn:ts_config" ]
62  }
63}
64