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("//build/ohos.gni") 15import("//build/test.gni") 16 17compiler_service_root = "//arkcompiler/ets_runtime/compiler_service" 18module_output_path = "arkcompiler/ets_runtime/compiler_service" 19 20declare_args() { 21 code_sign_enable_test = true 22 if (defined(global_parts_info) && 23 !defined(global_parts_info.security_code_signature)) { 24 code_sign_enable_test = false 25 } 26} 27 28compiler_service_include_dirs = [ 29 "${compiler_service_root}/test/mock/include", 30 "${compiler_service_root}/include", 31 "${compiler_service_root}/interface", 32] 33 34aot_compiler_service_sources = [ 35 "${compiler_service_root}/interface/aot_compiler_interface_proxy.cpp", 36 "${compiler_service_root}/interface/aot_compiler_interface_stub.cpp", 37 "${compiler_service_root}/src/aot_compiler_client.cpp", 38 "${compiler_service_root}/src/aot_compiler_error_utils.cpp", 39 "${compiler_service_root}/src/aot_compiler_impl.cpp", 40 "${compiler_service_root}/src/aot_compiler_load_callback.cpp", 41 "${compiler_service_root}/src/aot_compiler_service.cpp", 42 "${compiler_service_root}/src/power_disconnected_listener.cpp", 43 "${compiler_service_root}/src/screen_status_listener.cpp", 44 "${compiler_service_root}/src/thermal_mgr_listener.cpp", 45 "${compiler_service_root}/test/mock/src/ecmascript/log_wrapper.cpp", 46] 47