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