• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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")
15import("../gn/config.gni")
16
17config("myconfig") {
18  cflags = [ "-std=c++17" ]
19}
20
21ohos_static_library("mock_rich") {
22  cflags = [ "-std=c++17" ]
23
24  include_dirs = [
25    ".",
26    "../util/",
27    "../cli/",
28  ]
29  include_dirs += os_include_dirs
30
31  deps = [
32    "../util:util_rich",
33    "//third_party/libjpeg-turbo:turbojpeg_static",
34    "//third_party/libwebsockets:websockets_static",
35  ]
36
37  sources = [
38    "LanguageManager.cpp",
39    "MouseInput.cpp",
40    "MouseWheel.cpp",
41    "KeyInput.cpp",
42    "SystemCapability.cpp",
43    "VirtualMessage.cpp",
44    "VirtualScreen.cpp",
45    "rich/LanguageManagerImpl.cpp",
46    "rich/MouseInputImpl.cpp",
47    "rich/MouseWheelImpl.cpp",
48    "rich/KeyInputImpl.cpp",
49    "rich/VirtualMessageImpl.cpp",
50    "rich/VirtualScreenImpl.cpp",
51  ]
52
53  include_dirs += [
54    "./rich/",
55    "//third_party/jsoncpp/include/json/",
56  ]
57}
58
59ohos_static_library("mock_lite") {
60  configs = [ ":myconfig" ]
61  include_dirs = [
62    ".",
63    "../util/",
64  ]
65
66  deps = [
67    "../util:util_lite",
68    "//base/global/i18n_lite/interfaces/kits/js/builtin:nativeapi_locale_simulator",
69    "//base/global/resource_management_lite/frameworks/resmgr_lite:global_resmgr_simulator",
70    "//base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin:libnativeapi_battery_simulator",
71    "//base/startup/syspara_lite/simulator:sysparam_simulator",
72    "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite",
73    "//third_party/libjpeg-turbo:turbojpeg_static",
74    "//third_party/libwebsockets:websockets_static",
75    "//commonlibrary/utils_lite/js/builtin/simulator:ace_kit_common_simulator",
76    "//commonlibrary/utils_lite/js/builtin/simulator:ace_kit_deviceinfo_simulator",
77    "//commonlibrary/utils_lite/js/builtin/simulator:ace_kit_file_simulator",
78    "//commonlibrary/utils_lite/js/builtin/simulator:ace_kit_kvstore_simulator",
79  ]
80
81  sources = [
82    "LanguageManager.cpp",
83    "MouseInput.cpp",
84    "MouseWheel.cpp",
85    "KeyInput.cpp",
86    "SystemCapability.cpp",
87    "VirtualMessage.cpp",
88    "VirtualScreen.cpp",
89    "lite/AblityKit.cpp",
90    "lite/AsyncWorkManager.cpp",
91    "lite/BatteryModuleImpl.cpp",
92    "lite/HalSysParam.cpp",
93    "lite/JsAsyncWork.cpp",
94    "lite/LanguageManagerImpl.cpp",
95    "lite/MouseInputImpl.cpp",
96    "lite/MouseWheelImpl.cpp",
97    "lite/KeyInputImpl.cpp",
98    "lite/NativeTimer.cpp",
99    "lite/VirtualMessageImpl.cpp",
100    "lite/VirtualScreenImpl.cpp",
101  ]
102
103  include_dirs += [
104    "./lite/",
105    "//foundation/graphic/ui/interfaces/innerkits/dock/",
106    "//third_party/jsoncpp/include/json/",
107    "//foundation/graphic/ui/interfaces/innerkits/",
108    "//foundation/graphic/ui/frameworks/",
109    "//foundation/graphic/ui/frameworks/dock/",
110    "//foundation/graphic/ui/interfaces/kits/",
111    "//foundation/graphic/utils/interfaces/kits/",
112    "//foundation/graphic/utils/interfaces/innerkits/",
113  ]
114}
115