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/util" 177c804472Sopenharmony_ci 187c804472Sopenharmony_cigroup("util_unittest") { 197c804472Sopenharmony_ci testonly = true 207c804472Sopenharmony_ci deps = [ ":util_test" ] 217c804472Sopenharmony_ci} 227c804472Sopenharmony_ci 237c804472Sopenharmony_ciide_unittest("util_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 = "util" 297c804472Sopenharmony_ci sources = [ 307c804472Sopenharmony_ci "$ide_previewer_path/test/mock/MockGlobalResult.cpp", 317c804472Sopenharmony_ci "$ide_previewer_path/test/mock/util/MockLocalSocket.cpp", 327c804472Sopenharmony_ci "$ide_previewer_path/util/CallbackQueue.cpp", 337c804472Sopenharmony_ci "$ide_previewer_path/util/CommandParser.cpp", 347c804472Sopenharmony_ci "$ide_previewer_path/util/CppTimer.cpp", 357c804472Sopenharmony_ci "$ide_previewer_path/util/CppTimerManager.cpp", 367c804472Sopenharmony_ci "$ide_previewer_path/util/EndianUtil.cpp", 377c804472Sopenharmony_ci "$ide_previewer_path/util/FileSystem.cpp", 387c804472Sopenharmony_ci "$ide_previewer_path/util/Interrupter.cpp", 397c804472Sopenharmony_ci "$ide_previewer_path/util/JsonReader.cpp", 407c804472Sopenharmony_ci "$ide_previewer_path/util/ModelManager.cpp", 417c804472Sopenharmony_ci "$ide_previewer_path/util/PreviewerEngineLog.cpp", 427c804472Sopenharmony_ci "$ide_previewer_path/util/PublicMethods.cpp", 437c804472Sopenharmony_ci "$ide_previewer_path/util/SharedDataManager.cpp", 447c804472Sopenharmony_ci "$ide_previewer_path/util/TimeTool.cpp", 457c804472Sopenharmony_ci "$ide_previewer_path/util/TraceTool.cpp", 467c804472Sopenharmony_ci "$ide_previewer_path/util/unix/CrashHandler.cpp", 477c804472Sopenharmony_ci "$ide_previewer_path/util/unix/LocalDate.cpp", 487c804472Sopenharmony_ci "$ide_previewer_path/util/unix/NativeFileSystem.cpp", 497c804472Sopenharmony_ci "CallbackQueueTest.cpp", 507c804472Sopenharmony_ci "CommandParserTest.cpp", 517c804472Sopenharmony_ci "CppTimerManagerTest.cpp", 527c804472Sopenharmony_ci "CppTimerTest.cpp", 537c804472Sopenharmony_ci "CrashHandlerTest.cpp", 547c804472Sopenharmony_ci "EndianUtilTest.cpp", 557c804472Sopenharmony_ci "JsonReaderTest.cpp", 567c804472Sopenharmony_ci "LocalDateTest.cpp", 577c804472Sopenharmony_ci "ModelManagerTest.cpp", 587c804472Sopenharmony_ci "NativeFileSystemTest.cpp", 597c804472Sopenharmony_ci "PublicMethodsTest.cpp", 607c804472Sopenharmony_ci "SharedDataTest.cpp", 617c804472Sopenharmony_ci "TimeToolTest.cpp", 627c804472Sopenharmony_ci "TraceToolTest.cpp", 637c804472Sopenharmony_ci ] 647c804472Sopenharmony_ci include_dirs = [ 657c804472Sopenharmony_ci "$ide_previewer_path/test/mock", 667c804472Sopenharmony_ci "$ide_previewer_path/util", 677c804472Sopenharmony_ci "$ide_previewer_path/util/linux", 687c804472Sopenharmony_ci "$ide_previewer_path/util/unix", 697c804472Sopenharmony_ci "//third_party/cJSON", 707c804472Sopenharmony_ci "//third_party/bounds_checking_function/include", 717c804472Sopenharmony_ci ] 727c804472Sopenharmony_ci deps = [ 737c804472Sopenharmony_ci "//third_party/bounds_checking_function:libsec_static", 747c804472Sopenharmony_ci "//third_party/cJSON:cjson_static", 757c804472Sopenharmony_ci ] 767c804472Sopenharmony_ci libs = [] 777c804472Sopenharmony_ci cflags = [ "-fno-exceptions" ] 787c804472Sopenharmony_ci cflags_cc = [ "-fno-exceptions" ] 797c804472Sopenharmony_ci ldflags = [] 807c804472Sopenharmony_ci} 81