• 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/wukong"
17aafwk_root = "//foundation/aafwk/standard"
18
19config("wukong_common_config") {
20  include_dirs = [ "//third_party/json/single_include/nlohmann" ]
21  cflags = [ "-D__OHOS__" ]
22}
23
24accessibility_include_dirs = [
25  "//base/accessibility/frameworks/aafwk/include",
26  "//foundation/appexecfwk/standard/common/log/include",
27  "//foundation/multimodalinput/input/interfaces/native/innerkits/common/include",
28  "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include",
29  "//foundation/multimodalinput/input/interfaces/native/innerkits/proxy/include",
30  "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include",
31  "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
32  "//base/hiviewdfx/hisysevent/adapter/native/idl/include",
33  "//utils/native/base/include",
34  "//utils/system/safwk/native/include",
35  "//third_party/json/include",
36  "include",
37]
38
39ohos_executable("wukong") {
40  configs = [ ":wukong_common_config" ]
41  sources = [
42    "${aafwk_root}/tools/aa/src/shell_command.cpp",
43    "${wukong_root}/src/wukong_app_manager.cpp",
44    "${wukong_root}/src/wukong_command.cpp",
45    "${wukong_root}/src/wukong_event_manager.cpp",
46    "${wukong_root}/src/wukong_exception_manager.cpp",
47    "${wukong_root}/src/wukong_main.cpp",
48    "${wukong_root}/src/wukong_sysevent_listener.cpp",
49  ]
50
51  include_dirs = [ "${wukong_root}/include" ]
52
53  include_dirs += accessibility_include_dirs
54
55  deps = [ "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager:libhisyseventmanager" ]
56
57  external_deps = [
58    "ability_base:want",
59    "ability_runtime:ability_context_native",
60    "ability_runtime:ability_manager",
61    "ability_runtime:abilitykit_native",
62    "ability_runtime:runtime",
63    "accessibility:accessibilityclient",
64    "accessibility:accessibleability",
65    "bundle_framework:appexecfwk_base",
66    "bundle_framework:appexecfwk_core",
67    "ces_standard:cesfwk_core",
68    "ces_standard:cesfwk_innerkits",
69    "hisysevent_native:libhisysevent",
70    "hiviewdfx_hilog_native:libhilog",
71    "multimodalinput_base:libmmi-client",
72    "ipc:ipc_core",
73    "multimedia_image_standard:image_native",
74    "samgr_standard:samgr_proxy",
75    "window_manager:libdm",
76    "window_manager:libwm",
77  ]
78  install_enable = false
79
80  subsystem_name = "test"
81  part_name = "wukong"
82  output_name = "wukong"
83  defines = [ "LOG_TAG=\"WuKong\"" ]
84}
85