# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import( "//arkcompiler/ets_runtime/compiler_service/test/compiler_service_test.gni") ohos_fuzztest("CompilerInterfaceStubFuzzTest") { module_out_path = module_output_path fuzz_config_file = "${compiler_service_root}/test/fuzztest/compilerinterfacestub_fuzzer" cflags = [ "-g", "-O0", "-Wno-unused-variable", "-fno-omit-frame-pointer", ] include_dirs = compiler_service_include_dirs sources = aot_compiler_service_sources external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libtokenid_sdk", "c_utils:utils", "common_event_service:cesfwk_innerkits", "eventhandler:libeventhandler", "hilog:libhilog", "hisysevent:libhisysevent", "hitrace:hitrace_meter", "icu:shared_icui18n", "icu:shared_icuuc", "ipc:ipc_core", "runtime_core:libarkfile_static", "safwk:system_ability_fwk", "samgr:samgr_proxy", ] defines = [] if (defined(global_parts_info) && !defined(global_parts_info.security_code_signature)) { external_deps += [ "code_signature:liblocal_code_sign_sdk" ] defines += [ "CODE_SIGN_ENABLE" ] } sources += [ "compilerinterfacestub_fuzzer.cpp" ] }