• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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.
13import("//base/hiviewdfx/hiview/hiview.gni")
14import("//build/ohos.gni")
15import("//build/test.gni")
16
17module_output_path = "hiview/hiview//bbox_detector"
18
19config("bbox_detector_test_config") {
20  visibility = [ ":*" ]
21  include_dirs = [
22    "../",
23    "../include",
24    "moduletest",
25    "unittest",
26    "$hiview_root/utility/common_utils/include",
27    "$hiview_root/utility/smart_parser",
28    "$hiview_root/utility/smart_parser/feature_analysis/include",
29  ]
30}
31
32ohos_unittest("BBoxDetectorUnitTest") {
33  sources = [
34    "../bbox_detector_plugin.cpp",
35    "unittest/bbox_detector_unit_test.cpp",
36  ]
37
38  configs = [ ":bbox_detector_test_config" ]
39
40  external_deps = [
41    "hilog:libhilog",
42    "hisysevent:libhisysevent",
43  ]
44
45  cflags = [ "-DUNITTEST" ]
46
47  deps = [
48    "$hiview_base:hiviewbase_static_lib_for_tdd",
49    "$hiview_base/event_store:event_store_source",
50    "$hiview_root/utility/common_utils:hiview_reliability_common_utils",
51    "$hiview_root/utility/smart_parser:smart_parser",
52  ]
53
54  module_out_path = module_output_path
55}
56
57ohos_moduletest("BBoxDetectorModuleTest") {
58  sources = [
59    "../bbox_detector_plugin.cpp",
60    "moduletest/bbox_detector_module_test.cpp",
61  ]
62
63  configs = [ ":bbox_detector_test_config" ]
64
65  cflags = [ "-DUNITTEST" ]
66
67  external_deps = [
68    "hilog:libhilog",
69    "hisysevent:libhisysevent",
70  ]
71
72  deps = [
73    "$hiview_base:hiviewbase_static_lib_for_tdd",
74    "$hiview_base/event_store:event_store_source",
75    "$hiview_root/utility/common_utils:hiview_reliability_common_utils",
76    "$hiview_root/utility/smart_parser:smart_parser",
77  ]
78
79  module_out_path = module_output_path
80}
81