1# Copyright (C) 2022-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/lite/config/subsystem/aafwk/path.gni") 15import("//build/lite/config/test.gni") 16 17group("hilog_lite_test") { 18 if (ohos_build_type == "debug" && ohos_kernel_type != "liteos_m") { 19 deps = [ ":lite_hilog_unittest" ] 20 } 21} 22 23if (ohos_build_type == "debug" && ohos_kernel_type != "liteos_m") { 24 unittest("lite_hilog_unittest") { 25 output_extension = "bin" 26 output_dir = "$root_out_dir/test/unittest/hilog_lite" 27 sources = [ "unittest/hilog_lite_test.cpp" ] 28 include_dirs = [ 29 "include", 30 "//third_party/bounds_checking_function/include", 31 "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin", 32 "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base", 33 "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/async", 34 "${aafwk_lite_path}/interfaces/kits/ability_lite", 35 "//base/powermgr/battery_lite/interfaces/kits", 36 "//base/powermgr/battery_lite/frameworks/native/include", 37 "//base/hiviewdfx/hilog_lite/frameworks/js/builtin/include", 38 ] 39 deps = [ 40 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 41 "//base/hiviewdfx/hilog_lite/frameworks/js/builtin:ace_kit_hilog", 42 "//base/powermgr/battery_lite/frameworks:batterymgr", 43 "//foundation/arkui/ace_engine_lite/frameworks/native_engine:ace_native_engine", 44 "//third_party/bounds_checking_function:libsec_shared", 45 "//third_party/jerryscript/jerry-port/default:jerry-port-default_shared", 46 ] 47 if (ohos_kernel_type == "liteos_m") { 48 deps += [ 49 "//foundation/arkui/ui_lite:ui", 50 "//third_party/jerryscript:jerry_engine", 51 ] 52 } else { 53 deps += [ "//third_party/jerryscript/jerry-core:jerry-core_shared" ] 54 } 55 } 56} 57