• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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(
15    "//arkcompiler/ets_runtime/compiler_service/test/compiler_service_test.gni")
16
17ohos_fuzztest("CompilerInterfaceStubFuzzTest") {
18  module_out_path = module_output_path
19  fuzz_config_file =
20      "${compiler_service_root}/test/fuzztest/compilerinterfacestub_fuzzer"
21  cflags = [
22    "-g",
23    "-O0",
24    "-Wno-unused-variable",
25    "-fno-omit-frame-pointer",
26  ]
27  include_dirs = compiler_service_include_dirs
28  sources = aot_compiler_service_sources
29  external_deps = [
30    "ability_base:want",
31    "access_token:libaccesstoken_sdk",
32    "access_token:libtokenid_sdk",
33    "c_utils:utils",
34    "common_event_service:cesfwk_innerkits",
35    "eventhandler:libeventhandler",
36    "hilog:libhilog",
37    "hisysevent:libhisysevent",
38    "hitrace:hitrace_meter",
39    "icu:shared_icui18n",
40    "icu:shared_icuuc",
41    "ipc:ipc_core",
42    "runtime_core:libarkfile_static",
43    "safwk:system_ability_fwk",
44    "samgr:samgr_proxy",
45  ]
46  defines = []
47  if (code_sign_enable_test) {
48    external_deps += [ "code_signature:liblocal_code_sign_sdk" ]
49    defines += [ "CODE_SIGN_ENABLE" ]
50  }
51  sources += [ "compilerinterfacestub_fuzzer.cpp" ]
52}
53