17c804472Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
27c804472Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
37c804472Sopenharmony_ci# you may not use this file except in compliance with the License.
47c804472Sopenharmony_ci# You may obtain a copy of the License at
57c804472Sopenharmony_ci#
67c804472Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
77c804472Sopenharmony_ci#
87c804472Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
97c804472Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
107c804472Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
117c804472Sopenharmony_ci# See the License for the specific language governing permissions and
127c804472Sopenharmony_ci# limitations under the License.
137c804472Sopenharmony_ci
147c804472Sopenharmony_ciimport("../../test.gni")
157c804472Sopenharmony_ci
167c804472Sopenharmony_cimodule_output_path = "previewer/mock_lite"
177c804472Sopenharmony_ci
187c804472Sopenharmony_cigroup("mock_lite_unittest") {
197c804472Sopenharmony_ci  testonly = true
207c804472Sopenharmony_ci  deps = [ ":mock_lite_test" ]
217c804472Sopenharmony_ci}
227c804472Sopenharmony_ci
237c804472Sopenharmony_ciide_unittest("mock_lite_test") {
247c804472Sopenharmony_ci  testonly = true
257c804472Sopenharmony_ci  part_name = "previewer"
267c804472Sopenharmony_ci  subsystem_name = "ide"
277c804472Sopenharmony_ci  module_out_path = module_output_path
287c804472Sopenharmony_ci  output_name = "mock_lite"
297c804472Sopenharmony_ci  sources = [
307c804472Sopenharmony_ci    "$ide_previewer_path/mock/KeyInput.cpp",
317c804472Sopenharmony_ci    "$ide_previewer_path/mock/LanguageManager.cpp",
327c804472Sopenharmony_ci    "$ide_previewer_path/mock/MouseInput.cpp",
337c804472Sopenharmony_ci    "$ide_previewer_path/mock/MouseWheel.cpp",
347c804472Sopenharmony_ci    "$ide_previewer_path/mock/VirtualMessage.cpp",
357c804472Sopenharmony_ci    "$ide_previewer_path/mock/VirtualScreen.cpp",
367c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/AblityKit.cpp",
377c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/AsyncWorkManager.cpp",
387c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/BatteryModuleImpl.cpp",
397c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/BrightnessModuleImpl.cpp",
407c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/GeoLocation.cpp",
417c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/HalSysParam.cpp",
427c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/JsAsyncWork.cpp",
437c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/KeyInputImpl.cpp",
447c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/LanguageManagerImpl.cpp",
457c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/MouseInputImpl.cpp",
467c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/MouseWheelImpl.cpp",
477c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/NativeTimer.cpp",
487c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/SensorModuleImpl.cpp",
497c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/VibratorModuleImpl.cpp",
507c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/VirtualLocation.cpp",
517c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/VirtualMessageImpl.cpp",
527c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite/VirtualScreenImpl.cpp",
537c804472Sopenharmony_ci    "$ide_previewer_path/test/mock/MockGlobalResult.cpp",
547c804472Sopenharmony_ci    "$ide_previewer_path/test/mock/util/MockLocalSocket.cpp",
557c804472Sopenharmony_ci    "$ide_previewer_path/test/mock/util/MockWebSocketServer.cpp",
567c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockBaseGfxEngine.cpp",
577c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockDrawUtils.cpp",
587c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockImageDecodeAbility.cpp",
597c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockInputDeviceManager.cpp",
607c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockPointerInputDevice.cpp",
617c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockRotateInputDevice.cpp",
627c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockSoftEngine.cpp",
637c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockTask.cpp",
647c804472Sopenharmony_ci    "$ide_previewer_path/test/mock_lite/ui_lite/MockTaskManager.cpp",
657c804472Sopenharmony_ci    "$ide_previewer_path/util/CallbackQueue.cpp",
667c804472Sopenharmony_ci    "$ide_previewer_path/util/CommandParser.cpp",
677c804472Sopenharmony_ci    "$ide_previewer_path/util/CppTimer.cpp",
687c804472Sopenharmony_ci    "$ide_previewer_path/util/CppTimerManager.cpp",
697c804472Sopenharmony_ci    "$ide_previewer_path/util/EndianUtil.cpp",
707c804472Sopenharmony_ci    "$ide_previewer_path/util/FileSystem.cpp",
717c804472Sopenharmony_ci    "$ide_previewer_path/util/Interrupter.cpp",
727c804472Sopenharmony_ci    "$ide_previewer_path/util/JsonReader.cpp",
737c804472Sopenharmony_ci    "$ide_previewer_path/util/ModelManager.cpp",
747c804472Sopenharmony_ci    "$ide_previewer_path/util/PreviewerEngineLog.cpp",
757c804472Sopenharmony_ci    "$ide_previewer_path/util/SharedDataManager.cpp",
767c804472Sopenharmony_ci    "$ide_previewer_path/util/TimeTool.cpp",
777c804472Sopenharmony_ci    "$ide_previewer_path/util/TraceTool.cpp",
787c804472Sopenharmony_ci    "$ide_previewer_path/util/unix/LocalDate.cpp",
797c804472Sopenharmony_ci    "$ide_previewer_path/util/unix/NativeFileSystem.cpp",
807c804472Sopenharmony_ci    "AblityKitTest.cpp",
817c804472Sopenharmony_ci    "AsyncWorkManagerTest.cpp",
827c804472Sopenharmony_ci    "BatteryModuleImplTest.cpp",
837c804472Sopenharmony_ci    "BrightnessModuleImplTest.cpp",
847c804472Sopenharmony_ci    "GeoLocationTest.cpp",
857c804472Sopenharmony_ci    "HalSysParamTest.cpp",
867c804472Sopenharmony_ci    "JsAsyncWorkTest.cpp",
877c804472Sopenharmony_ci    "KeyInputImplTest.cpp",
887c804472Sopenharmony_ci    "LanguageManagerImplTest.cpp",
897c804472Sopenharmony_ci    "MouseInputImplTest.cpp",
907c804472Sopenharmony_ci    "MouseWheelImplTest.cpp",
917c804472Sopenharmony_ci    "NativeTimerTest.cpp",
927c804472Sopenharmony_ci    "SensorModuleImplTest.cpp",
937c804472Sopenharmony_ci    "VibratorModuleImplTest.cpp",
947c804472Sopenharmony_ci    "VirtualLocationTest.cpp",
957c804472Sopenharmony_ci    "VirtualMessageImplTest.cpp",
967c804472Sopenharmony_ci    "VirtualScreenImplTest.cpp",
977c804472Sopenharmony_ci  ]
987c804472Sopenharmony_ci  include_dirs = [
997c804472Sopenharmony_ci    ".",
1007c804472Sopenharmony_ci    "$ide_previewer_path/mock",
1017c804472Sopenharmony_ci    "$ide_previewer_path/mock/lite",
1027c804472Sopenharmony_ci    "$ide_previewer_path/util",
1037c804472Sopenharmony_ci    "$ide_previewer_path/test/mock",
1047c804472Sopenharmony_ci    "$powermgr_lite_path/interfaces/kits/battery/js/builtin/include",
1057c804472Sopenharmony_ci    "$geo_lite_path/js/builtin/include",
1067c804472Sopenharmony_ci    "$sensorjs_lite_path/sensor_lite/interfaces/js/builtin/sensor/include",
1077c804472Sopenharmony_ci    "$sensorjs_lite_path/miscdevice_lite/interfaces/js/builtin/vibrate/include",
1087c804472Sopenharmony_ci    "$startup_init_path/interfaces/hals",
1097c804472Sopenharmony_ci    "$utils_lite_path/timer_task/include",
1107c804472Sopenharmony_ci    "$ace_engine_lite_path/interfaces/inner_api/builtin/base",
1117c804472Sopenharmony_ci    "$ace_engine_lite_path/interfaces/inner_api/builtin/async",
1127c804472Sopenharmony_ci    "$ace_engine_lite_path/interfaces/inner_api/builtin/jsi",
1137c804472Sopenharmony_ci    "$ui_lite_path/interfaces/kits",
1147c804472Sopenharmony_ci    "$ui_lite_path/interfaces/innerkits",
1157c804472Sopenharmony_ci    "$ui_lite_path/frameworks",
1167c804472Sopenharmony_ci    "$ui_lite_path/frameworks/dock",
1177c804472Sopenharmony_ci    "$ui_lite_path/interfaces/innerkits/dock",
1187c804472Sopenharmony_ci    "$ui_lite_path/interfaces/innerkits/common",
1197c804472Sopenharmony_ci    "$ui_lite_path/interfaces/innerkits/engines/gfx",
1207c804472Sopenharmony_ci    "$ui_lite_path/frameworks/draw",
1217c804472Sopenharmony_ci    "$ui_lite_path/interfaces/kits/common",
1227c804472Sopenharmony_ci    "$ui_ext_lite_path/tools/ide/brightness_lite/js/builtin/include",
1237c804472Sopenharmony_ci    "$graphic_utils_lite_path/interfaces/innerkits",
1247c804472Sopenharmony_ci    "$graphic_utils_lite_path/interfaces/kits",
1257c804472Sopenharmony_ci    "$ability_lite_path/frameworks/abilitymgr_lite/include",
1267c804472Sopenharmony_ci    "//third_party/libwebsockets/include",
1277c804472Sopenharmony_ci  ]
1287c804472Sopenharmony_ci  deps = [
1297c804472Sopenharmony_ci    "//third_party/bounds_checking_function:libsec_static",
1307c804472Sopenharmony_ci    "//third_party/cJSON:cjson_static",
1317c804472Sopenharmony_ci    "//third_party/libjpeg-turbo:turbojpeg_static",
1327c804472Sopenharmony_ci  ]
1337c804472Sopenharmony_ci  libs = []
1347c804472Sopenharmony_ci  cflags = [
1357c804472Sopenharmony_ci    "-Wno-error=overflow",
1367c804472Sopenharmony_ci    "-fno-exceptions",
1377c804472Sopenharmony_ci  ]
1387c804472Sopenharmony_ci  cflags_cc = [
1397c804472Sopenharmony_ci    "-Wno-error=overflow",
1407c804472Sopenharmony_ci    "-fno-exceptions",
1417c804472Sopenharmony_ci  ]
1427c804472Sopenharmony_ci  ldflags = [ "-Wno-error=overflow" ]
1437c804472Sopenharmony_ci}
144