1# Copyright (c) 2022 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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/test.gni") 17import("//foundation/ability/ability_runtime/ability_runtime.gni") 18module_output_path = "arkui/utilmost" 19 20##############################fuzztest########################################## 21import("//foundation/arkui/ace_engine/ace_config.gni") 22ohos_fuzztest("UtilMostFuzzTest") { 23 module_out_path = module_output_path 24 fuzz_config_file = 25 "//foundation/arkui/ace_engine/test/fuzztest/utilmost_fuzzer" 26 include_dirs = [] 27 cflags = [ 28 "-g", 29 "-O0", 30 "-Wno-unused-variable", 31 "-fno-omit-frame-pointer", 32 ] 33 sources = [ 34 "$ace_root/adapter/ohos/osal/log_wrapper.cpp", 35 "$ace_root/frameworks/base/geometry/dimension.cpp", 36 "$ace_root/frameworks/base/json/json_util.cpp", 37 "$ace_root/frameworks/base/log/dump_log.cpp", 38 "$ace_root/frameworks/bridge/common/dom/dom_type.cpp", 39 40 #"$ace_root/frameworks/base/utils/resource_configuration.cpp", 41 #"$ace_root/frameworks/base/utils/string_expression.cpp", 42 #"$ace_root/frameworks/bridge/common/utils/source_map.cpp", 43 "$ace_root/frameworks/bridge/common/utils/utils.cpp", 44 "$ace_root/frameworks/bridge/js_frontend/engine/common/js_constants.cpp", 45 "$ace_root/frameworks/core/animation/anticipate_curve.cpp", 46 "$ace_root/frameworks/core/animation/cubic_curve.cpp", 47 "$ace_root/frameworks/core/animation/curves.cpp", 48 "$ace_root/frameworks/core/animation/spring_curve.cpp", 49 "$ace_root/frameworks/core/animation/spring_model.cpp", 50 "$ace_root/frameworks/core/components/common/properties/clip_path.cpp", 51 "//third_party/cJSON/cJSON.c", 52 "utilmost_fuzzer.cpp", 53 54 #"$ace_root/frameworks/core/animation/curves.cpp", 55 #"$ace_root/frameworks/base/geometry/dimension.cpp", 56 ] 57 include_dirs = [ 58 "$ace_root/frameworks/base/utils", 59 "$ace_root/frameworks/base/json", 60 "$ace_root/frameworks/base/", 61 "$ace_root/frameworks", 62 "$ace_root", 63 cjson_root, 64 ] 65 defines = [ "FUZZTEST" ] 66 deps = [ 67 #"$ace_root/adapter/ohos/osal:ace_osal_ohos", 68 "//foundation/window/window_manager/utils:libwmutil", 69 "//foundation/window/window_manager/wm:libwm", 70 "//third_party/icu/icu4c:shared_icui18n", 71 "//third_party/icu/icu4c:shared_icuuc", 72 ] 73 external_deps = [ 74 "ability_base:want", 75 "ability_runtime:ability_manager", 76 "bundle_framework:appexecfwk_base", 77 "c_utils:utils", 78 "eventhandler:libeventhandler", 79 "hiviewdfx_hilog_native:libhilog", 80 "input:libmmi-client", 81 "ipc:ipc_core", 82 "window_manager:libdm", 83 ] 84} 85 86############################################################################### 87group("fuzztest") { 88 testonly = true 89 deps = [] 90 deps += [ 91 # deps file 92 ":UtilMostFuzzTest", 93 ] 94} 95############################################################################### 96