# 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") config("module_private_config") { visibility = [ ":*" ] include_dirs = compiler_service_include_dirs cflags = [ "-Wno-error=keyword-macro" ] } ohos_unittest("AotCompilerClientUnitTest") { module_out_path = module_output_path sources = aot_compiler_service_sources configs = [ ":module_private_config" ] deps = [ "${compiler_service_root}:libcompiler_service", "//third_party/googletest:gmock_main", "//third_party/googletest:gtest_main", ] external_deps = [ "ability_base:want", "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 (code_sign_enable_test) { external_deps += [ "code_signature:liblocal_code_sign_sdk" ] defines += [ "CODE_SIGN_ENABLE" ] } sources += [ "aotcompilerclient_unit.cpp" ] }