• 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("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/ohos.gni")
16
17###############################################################################
18config("smart_parser_config") {
19  visibility = [ "*:*" ]
20
21  include_dirs = [
22    "//utils/native/base/include",
23    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
24    "//third_party/jsoncpp/include",
25    ".",
26    "include",
27    "../include",
28    "./rule/include",
29    "./feature_analysis/include",
30    "./segment_analysis/include",
31  ]
32}
33
34ohos_source_set("smart_parser") {
35  part_name = "hiview"
36  sources = [
37    "./feature_analysis/feature_analysis.cpp",
38    "./feature_analysis/log_util.cpp",
39    "./rule/compose_rule.cpp",
40    "./rule/extract_rule.cpp",
41    "./rule/rule.cpp",
42    "./segment_analysis/segment.cpp",
43    "./segment_analysis/segment_analysis.cpp",
44    "./segment_analysis/segment_analysis_factory.cpp",
45    "./segment_analysis/segment_analysis_onelayer.cpp",
46    "./segment_analysis/segment_analysis_twolayers.cpp",
47    "smart_parser.cpp",
48  ]
49
50  configs = [ ":smart_parser_config" ]
51
52  external_deps = [ "hilog_native:libhilog" ]
53
54  deps = [
55    "$hiview_base:hiviewbase",
56    "config:config",
57    "//third_party/jsoncpp:jsoncpp",
58    "//utils/native/base:utils",
59  ]
60}
61###############################################################################
62