14514f5e3Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 24514f5e3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 34514f5e3Sopenharmony_ci# you may not use this file except in compliance with the License. 44514f5e3Sopenharmony_ci# You may obtain a copy of the License at 54514f5e3Sopenharmony_ci# 64514f5e3Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 74514f5e3Sopenharmony_ci# 84514f5e3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 94514f5e3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 104514f5e3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 114514f5e3Sopenharmony_ci# See the License for the specific language governing permissions and 124514f5e3Sopenharmony_ci# limitations under the License. 134514f5e3Sopenharmony_ci 144514f5e3Sopenharmony_ciimport("../../compiler_service_test.gni") 154514f5e3Sopenharmony_ci 164514f5e3Sopenharmony_ciconfig("module_private_config") { 174514f5e3Sopenharmony_ci visibility = [ ":*" ] 184514f5e3Sopenharmony_ci include_dirs = compiler_service_include_dirs 194514f5e3Sopenharmony_ci cflags = [ "-Wno-error=keyword-macro" ] 204514f5e3Sopenharmony_ci} 214514f5e3Sopenharmony_ci 224514f5e3Sopenharmony_ciohos_unittest("AotCompilerProxyUnitTest") { 234514f5e3Sopenharmony_ci module_out_path = module_output_path 244514f5e3Sopenharmony_ci sources = aot_compiler_service_sources 254514f5e3Sopenharmony_ci configs = [ ":module_private_config" ] 264514f5e3Sopenharmony_ci deps = [ 274514f5e3Sopenharmony_ci "${compiler_service_root}:libcompiler_service", 284514f5e3Sopenharmony_ci "//third_party/googletest:gmock_main", 294514f5e3Sopenharmony_ci "//third_party/googletest:gtest_main", 304514f5e3Sopenharmony_ci ] 314514f5e3Sopenharmony_ci external_deps = [ 324514f5e3Sopenharmony_ci "ability_base:want", 334514f5e3Sopenharmony_ci "access_token:libaccesstoken_sdk", 344514f5e3Sopenharmony_ci "access_token:libtokenid_sdk", 354514f5e3Sopenharmony_ci "c_utils:utils", 364514f5e3Sopenharmony_ci "common_event_service:cesfwk_innerkits", 374514f5e3Sopenharmony_ci "eventhandler:libeventhandler", 384514f5e3Sopenharmony_ci "hilog:libhilog", 394514f5e3Sopenharmony_ci "hisysevent:libhisysevent", 404514f5e3Sopenharmony_ci "hitrace:hitrace_meter", 414514f5e3Sopenharmony_ci "icu:shared_icui18n", 424514f5e3Sopenharmony_ci "icu:shared_icuuc", 434514f5e3Sopenharmony_ci "ipc:ipc_core", 444514f5e3Sopenharmony_ci "runtime_core:libarkfile_static", 454514f5e3Sopenharmony_ci "safwk:system_ability_fwk", 464514f5e3Sopenharmony_ci "samgr:samgr_proxy", 474514f5e3Sopenharmony_ci ] 484514f5e3Sopenharmony_ci defines = [] 494514f5e3Sopenharmony_ci if (defined(global_parts_info) && 504514f5e3Sopenharmony_ci !defined(global_parts_info.security_code_signature)) { 514514f5e3Sopenharmony_ci external_deps += [ "code_signature:liblocal_code_sign_sdk" ] 524514f5e3Sopenharmony_ci defines += [ "CODE_SIGN_ENABLE" ] 534514f5e3Sopenharmony_ci } 544514f5e3Sopenharmony_ci sources += [ "aotcompilerproxy_unit.cpp" ] 554514f5e3Sopenharmony_ci} 56