• 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.
13
14import("//build/ohos.gni")
15
16ability_runtime_root = "//foundation/ability/ability_runtime"
17
18config("wukong_common_config") {
19  cflags = [ "-D__OHOS__" ]
20  cflags_cc = [ "-fexceptions" ]
21}
22
23accessibility_include_dirs = [
24  "include",
25]
26
27ohos_executable("wukong") {
28  configs = [ ":wukong_common_config" ]
29  sources = [
30    "${ability_runtime_root}/tools/aa/src/shell_command.cpp",
31    "./common/src/app_manager.cpp",
32    "./common/src/component_manager.cpp",
33    "./common/src/count_down_latch.cpp",
34    "./common/src/multimode_manager.cpp",
35    "./common/src/wukong_logger.cpp",
36    "./common/src/wukong_util.cpp",
37    "./component_event/src/ability_tree.cpp",
38    "./component_event/src/component_tree.cpp",
39    "./component_event/src/focus_scene_delegate.cpp",
40    "./component_event/src/normal_scene.cpp",
41    "./component_event/src/page_tree.cpp",
42    "./component_event/src/scene_delegate.cpp",
43    "./component_event/src/tree_manager.cpp",
44    "./component_event/src/wukong_tree.cpp",
45    "./input_factory/src/appswitch_input.cpp",
46    "./input_factory/src/component_input.cpp",
47    "./input_factory/src/hardkey_input.cpp",
48    "./input_factory/src/input_action.cpp",
49    "./input_factory/src/input_factory.cpp",
50    "./input_factory/src/keyboard_input.cpp",
51    "./input_factory/src/mouse_input.cpp",
52    "./input_factory/src/record_input.cpp",
53    "./input_factory/src/rotate_input.cpp",
54    "./input_factory/src/swap_input.cpp",
55    "./input_factory/src/touch_input.cpp",
56    "./report/src/data_set.cpp",
57    "./report/src/exception_manager.cpp",
58    "./report/src/filter.cpp",
59    "./report/src/filter_category.cpp",
60    "./report/src/format.cpp",
61    "./report/src/format_csv.cpp",
62    "./report/src/format_json.cpp",
63    "./report/src/report.cpp",
64    "./report/src/statistics.cpp",
65    "./report/src/statistics_ability.cpp",
66    "./report/src/statistics_componment.cpp",
67    "./report/src/statistics_event.cpp",
68    "./report/src/statistics_exception.cpp",
69    "./report/src/sysevent_listener.cpp",
70    "./report/src/table.cpp",
71    "./shell_command/src/wukong_main.cpp",
72    "./shell_command/src/wukong_shell_command.cpp",
73    "./test_flow/src/focus_test_flow.cpp",
74    "./test_flow/src/random_test_flow.cpp",
75    "./test_flow/src/special_test_flow.cpp",
76    "./test_flow/src/test_flow.cpp",
77    "./test_flow/src/test_flow_factory.cpp",
78  ]
79
80  include_dirs = [
81    "./common/include",
82    "./component_event/include",
83    "./input_factory/include",
84    "./report/include",
85    "./shell_command/include",
86    "./test_flow/include",
87  ]
88
89  include_dirs += accessibility_include_dirs
90
91  deps = []
92
93  external_deps = [
94    "ability_base:want",
95    "ability_runtime:ability_context_native",
96    "ability_runtime:ability_manager",
97    "ability_runtime:abilitykit_native",
98    "ability_runtime:app_manager",
99    "ability_runtime:runtime",
100    "accessibility:accessibility_common",
101    "accessibility:accessibilityclient",
102    "accessibility:accessibleability",
103    "bundle_framework:appexecfwk_base",
104    "bundle_framework:appexecfwk_core",
105    "bundle_framework:libappexecfwk_common",
106    "c_utils:utils",
107    "graphic_2d:librender_service_base",
108    "hidumper:lib_dump_usage",
109    "hilog:libhilog",
110    "hisysevent:libhisysevent",
111    "hisysevent:libhisyseventmanager",
112    "image_framework:image_native",
113    "init:libbegetutil",
114    "input:libmmi-client",
115    "ipc:ipc_core",
116    "samgr:samgr_proxy",
117    "window_manager:libdm",
118    "window_manager:libwm",
119    "libpng:libpng",
120  ]
121  install_enable = true
122
123  subsystem_name = "ostest"
124  part_name = "wukong"
125  output_name = "wukong"
126  defines = [
127    "LOG_TAG=\"WuKong\"",
128    "LOG_DOMAIN = 0xD003200",
129  ]
130}
131