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("//arkcompiler/runtime_core/libabckit/abckit_config.gni") 15import("//arkcompiler/runtime_core/static_core/ark_config.gni") 16import("//arkcompiler/runtime_core/static_vm_config.gni") 17 18group("abckit_ir_builder_dynamic_source_set_header_deps") { 19 deps = [ 20 "../templates/abckit_intrinsics:abckit_ark_gen_inst_builder_abckit_intrinsics_inc", 21 "templates:abckit_isa_gen_bytecode_inst-inl_gen_h", 22 "templates:abckit_isa_gen_bytecode_inst_enum_gen_h", 23 ] 24} 25 26ohos_source_set("abckit_ir_builder_dynamic_source_set") { 27 sources = [ 28 "$target_gen_dir/generated/inst_builder_dyn_gen.cpp", 29 "inst_builder_dyn.cpp", 30 "ir_builder_dyn.cpp", 31 ] 32 33 cross_values_gen_dir = get_label_info( 34 "$ark_root_static/cross_values:cross_values_getters_generate(${default_toolchain})", 35 "target_gen_dir") 36 entrypoints_compiler_gen_dir = get_label_info( 37 "$ark_root_static/runtime:arkruntime_gen_entrypoints_entrypoints_compiler_inl", 38 "target_gen_dir") 39 intrinsics_gen_dir = get_label_info( 40 "$abckit_root/src/templates/dyn_intrinsics:abckit_isa_gen_dyn_intrinsics_enum_inl", 41 "target_gen_dir") 42 intrinsics_compiler_gen_dir = get_label_info( 43 "$ark_root_static/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_names_inl", 44 "target_gen_dir") 45 include_dirs = [ 46 "$target_gen_dir", 47 "$entrypoints_compiler_gen_dir/generated", 48 "$intrinsics_gen_dir/../generated", 49 "$cross_values_gen_dir", 50 "$ark_root_static/runtime", 51 "$intrinsics_compiler_gen_dir", 52 "$ark_root_static", # this target should not include headers from dynamic 53 54 # runtime, 55 56 # so static_core must be listed first 57 "$ark_root_static/..", 58 ] 59 60 part_name = "runtime_core" 61 subsystem_name = "arkcompiler" 62 63 configs = [ 64 "$ark_root_static/:ark_config", 65 "$ark_root_static/compiler:arkcompiler_public_config", 66 "$ark_root_static/libpandabase:arkbase_public_config", 67 "$ark_root_static/libpandafile:arkfile_public_config", 68 "$ark_root_static/runtime:profiling_gen_public_config", 69 "$abckit_root:abckit_config", 70 ] 71 72 deps = [ 73 ":abckit_ir_builder_dynamic_source_set_header_deps", 74 "$ark_root_static/compiler:libarktscompiler", 75 "templates:abckit_isa_gen_inst_builder_dyn_gen_cpp", 76 ] 77} 78