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/jsapp_lite" 177c804472Sopenharmony_ci 187c804472Sopenharmony_cigroup("jsapp_lite_unittest") { 197c804472Sopenharmony_ci testonly = true 207c804472Sopenharmony_ci deps = [ ":jsapp_lite_test" ] 217c804472Sopenharmony_ci} 227c804472Sopenharmony_ci 237c804472Sopenharmony_ciide_unittest("jsapp_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 = "jsapp_lite" 297c804472Sopenharmony_ci sources = [ 307c804472Sopenharmony_ci "$ide_previewer_path/cli/CommandLine.cpp", 317c804472Sopenharmony_ci "$ide_previewer_path/cli/CommandLineFactory.cpp", 327c804472Sopenharmony_ci "$ide_previewer_path/cli/CommandLineInterface.cpp", 337c804472Sopenharmony_ci "$ide_previewer_path/jsapp/JsApp.cpp", 347c804472Sopenharmony_ci "$ide_previewer_path/jsapp/lite/JsAppImpl.cpp", 357c804472Sopenharmony_ci "$ide_previewer_path/jsapp/lite/TimerTaskHandler.cpp", 367c804472Sopenharmony_ci "$ide_previewer_path/mock/KeyInput.cpp", 377c804472Sopenharmony_ci "$ide_previewer_path/mock/LanguageManager.cpp", 387c804472Sopenharmony_ci "$ide_previewer_path/mock/MouseInput.cpp", 397c804472Sopenharmony_ci "$ide_previewer_path/mock/MouseWheel.cpp", 407c804472Sopenharmony_ci "$ide_previewer_path/mock/VirtualMessage.cpp", 417c804472Sopenharmony_ci "$ide_previewer_path/mock/VirtualScreen.cpp", 427c804472Sopenharmony_ci "$ide_previewer_path/mock/lite/AsyncWorkManager.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/VirtualMessageImpl.cpp", 487c804472Sopenharmony_ci "$ide_previewer_path/mock/lite/VirtualScreenImpl.cpp", 497c804472Sopenharmony_ci "$ide_previewer_path/test/mock/MockGlobalResult.cpp", 507c804472Sopenharmony_ci "$ide_previewer_path/test/mock/util/MockLocalSocket.cpp", 517c804472Sopenharmony_ci "$ide_previewer_path/test/mock/util/MockWebSocketServer.cpp", 527c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ace_engine_lite/MockDebugger.cpp", 537c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ace_engine_lite/MockJsAbility.cpp", 547c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ace_engine_lite/MockProductAdapter.cpp", 557c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/resource_management_lite/MockGlobal.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/MockGraphicStartUp.cpp", 597c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockImageDecodeAbility.cpp", 607c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockInputDeviceManager.cpp", 617c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockPointerInputDevice.cpp", 627c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockRotateInputDevice.cpp", 637c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockSoftEngine.cpp", 647c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockTask.cpp", 657c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockTaskManager.cpp", 667c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockUIFont.cpp", 677c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockUIFontBuilder.cpp", 687c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockUIFontVector.cpp", 697c804472Sopenharmony_ci "$ide_previewer_path/test/mock_lite/ui_lite/MockUiLineBreak.cpp", 707c804472Sopenharmony_ci "$ide_previewer_path/util/CallbackQueue.cpp", 717c804472Sopenharmony_ci "$ide_previewer_path/util/CommandParser.cpp", 727c804472Sopenharmony_ci "$ide_previewer_path/util/CppTimer.cpp", 737c804472Sopenharmony_ci "$ide_previewer_path/util/CppTimerManager.cpp", 747c804472Sopenharmony_ci "$ide_previewer_path/util/EndianUtil.cpp", 757c804472Sopenharmony_ci "$ide_previewer_path/util/FileSystem.cpp", 767c804472Sopenharmony_ci "$ide_previewer_path/util/Interrupter.cpp", 777c804472Sopenharmony_ci "$ide_previewer_path/util/JsonReader.cpp", 787c804472Sopenharmony_ci "$ide_previewer_path/util/PreviewerEngineLog.cpp", 797c804472Sopenharmony_ci "$ide_previewer_path/util/SharedDataManager.cpp", 807c804472Sopenharmony_ci "$ide_previewer_path/util/TimeTool.cpp", 817c804472Sopenharmony_ci "$ide_previewer_path/util/TraceTool.cpp", 827c804472Sopenharmony_ci "$ide_previewer_path/util/unix/LocalDate.cpp", 837c804472Sopenharmony_ci "$ide_previewer_path/util/unix/NativeFileSystem.cpp", 847c804472Sopenharmony_ci "JsAppImplTest.cpp", 857c804472Sopenharmony_ci "TimerTaskHandlerTest.cpp", 867c804472Sopenharmony_ci ] 877c804472Sopenharmony_ci include_dirs = [ 887c804472Sopenharmony_ci ".", 897c804472Sopenharmony_ci "$ide_previewer_path/mock", 907c804472Sopenharmony_ci "$ide_previewer_path/mock/lite", 917c804472Sopenharmony_ci "$ide_previewer_path/util", 927c804472Sopenharmony_ci "$ide_previewer_path/jsapp", 937c804472Sopenharmony_ci "$ide_previewer_path/jsapp/lite", 947c804472Sopenharmony_ci "$ide_previewer_path/cli", 957c804472Sopenharmony_ci "$ide_previewer_path/test/mock", 967c804472Sopenharmony_ci "$ace_engine_lite_path/frameworks/include/context", 977c804472Sopenharmony_ci "$ace_engine_lite_path/frameworks/include/base", 987c804472Sopenharmony_ci "$ace_engine_lite_path/interfaces/inner_api/builtin/base", 997c804472Sopenharmony_ci "$ace_engine_lite_path/interfaces/inner_api/builtin/async", 1007c804472Sopenharmony_ci "$ace_engine_lite_path/interfaces/inner_api/builtin/jsi", 1017c804472Sopenharmony_ci "$ace_engine_lite_path/frameworks/targets/simulator", 1027c804472Sopenharmony_ci "$ui_lite_path/interfaces/kits/font", 1037c804472Sopenharmony_ci "$ui_lite_path/interfaces/innerkits/font", 1047c804472Sopenharmony_ci "$ui_lite_path/frameworks/font", 1057c804472Sopenharmony_ci "$ui_lite_path/interfaces/innerkits/common", 1067c804472Sopenharmony_ci "$ui_lite_path/interfaces/kits", 1077c804472Sopenharmony_ci "$ui_lite_path/interfaces/innerkits", 1087c804472Sopenharmony_ci "$ui_lite_path/frameworks", 1097c804472Sopenharmony_ci "$ui_lite_path/frameworks/dock", 1107c804472Sopenharmony_ci "$ui_lite_path/interfaces/innerkits/dock", 1117c804472Sopenharmony_ci "$ui_lite_path/interfaces/innerkits/common", 1127c804472Sopenharmony_ci "$ui_lite_path/interfaces/innerkits/engines/gfx", 1137c804472Sopenharmony_ci "$ui_lite_path/frameworks/draw", 1147c804472Sopenharmony_ci "$ui_lite_path/interfaces/kits/common", 1157c804472Sopenharmony_ci "$graphic_utils_lite_path/interfaces/innerkits", 1167c804472Sopenharmony_ci "$graphic_utils_lite_path/interfaces/kits", 1177c804472Sopenharmony_ci "$ability_lite_path/frameworks/abilitymgr_lite/include", 1187c804472Sopenharmony_ci "$resource_management_lite_path/interfaces/inner_api/include", 1197c804472Sopenharmony_ci "//third_party/libwebsockets/include", 1207c804472Sopenharmony_ci "//third_party/freetype/include", 1217c804472Sopenharmony_ci ] 1227c804472Sopenharmony_ci deps = [ 1237c804472Sopenharmony_ci "//third_party/bounds_checking_function:libsec_static", 1247c804472Sopenharmony_ci "//third_party/cJSON:cjson_static", 1257c804472Sopenharmony_ci "//third_party/libjpeg-turbo:turbojpeg_static", 1267c804472Sopenharmony_ci ] 1277c804472Sopenharmony_ci libs = [] 1287c804472Sopenharmony_ci cflags = [ 1297c804472Sopenharmony_ci "-Wno-error=overflow", 1307c804472Sopenharmony_ci "-fno-exceptions", 1317c804472Sopenharmony_ci ] 1327c804472Sopenharmony_ci cflags_cc = [ 1337c804472Sopenharmony_ci "-Wno-error=overflow", 1347c804472Sopenharmony_ci "-fno-exceptions", 1357c804472Sopenharmony_ci ] 1367c804472Sopenharmony_ci ldflags = [ "-Wno-error=overflow" ] 1377c804472Sopenharmony_ci} 138