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("../../compiler_service_test.gni") 15 16config("module_private_config") { 17 visibility = [ ":*" ] 18 include_dirs = compiler_service_include_dirs 19 cflags = [ "-Wno-error=keyword-macro" ] 20} 21 22ohos_unittest("AotCompilerProxyUnitTest") { 23 module_out_path = module_output_path 24 sources = aot_compiler_service_sources 25 configs = [ ":module_private_config" ] 26 deps = [ 27 "${compiler_service_root}:libcompiler_service", 28 "//third_party/googletest:gmock_main", 29 "//third_party/googletest:gtest_main", 30 ] 31 external_deps = [ 32 "ability_base:want", 33 "access_token:libaccesstoken_sdk", 34 "access_token:libtokenid_sdk", 35 "c_utils:utils", 36 "common_event_service:cesfwk_innerkits", 37 "eventhandler:libeventhandler", 38 "hilog:libhilog", 39 "hisysevent:libhisysevent", 40 "hitrace:hitrace_meter", 41 "icu:shared_icui18n", 42 "icu:shared_icuuc", 43 "ipc:ipc_core", 44 "runtime_core:libarkfile_static", 45 "safwk:system_ability_fwk", 46 "samgr:samgr_proxy", 47 ] 48 defines = [] 49 if (defined(global_parts_info) && 50 !defined(global_parts_info.security_code_signature)) { 51 external_deps += [ "code_signature:liblocal_code_sign_sdk" ] 52 defines += [ "CODE_SIGN_ENABLE" ] 53 } 54 sources += [ "aotcompilerproxy_unit.cpp" ] 55} 56