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