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