1# Copyright (c) 2021-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/static_core/ark_config.gni") 15if (ark_standalone_build) { 16 import("$build_root/ark.gni") 17} else { 18 import("//build/ohos.gni") 19} 20 21config("verification_public_config") { 22 include_dirs = [ 23 "$ark_root/verification", 24 "$target_gen_dir", 25 "$target_gen_dir/include", 26 "$target_gen_dir/../..", 27 ] 28} 29 30if (!ark_static_standalone_build) { 31 ohos_shared_headers("verification_headers") { 32 include_dirs = [ 33 "$ark_root/verification", 34 "$target_gen_dir", 35 "$target_gen_dir/include", 36 "$target_gen_dir/../..", 37 ] 38 part_name = ark_part_name 39 subsystem_name = "$ark_subsystem_name" 40 } 41} 42 43ark_gen_file("verification_abs_int_inl_compat_checks_h") { 44 template_file = "templates/abs_int_inl_compat_checks.h.erb" 45 data = [ "$ark_root/verification/verification.yaml" ] 46 api = [ "$ark_root/verification/verification.rb" ] 47 output_file = "$target_gen_dir/include/abs_int_inl_compat_checks.h" 48} 49 50ark_isa_gen("isa_gen_verification_gen") { 51 template_files = [ 52 "cflow_iterate_inl_gen.h.erb", 53 "abs_int_inl_gen.h.erb", 54 "job_fill_gen.h.erb", 55 "handle_gen.h.erb", 56 ] 57 sources = "templates" ## ark_root/templates 58 destination = "$target_gen_dir/include" ## target_gen_dir/include 59 extra_dependencies = [ ":verification_abs_int_inl_compat_checks_h" ] 60} 61 62ark_gen_file("verification_verifier_messages_h") { 63 template_file = "$ark_root/templates/messages/messages.h.erb" 64 data = [ "$ark_root/verification/messages.yaml" ] 65 api = [ "$ark_root/templates/messages.rb" ] 66 output_file = "$target_gen_dir/include/verifier_messages.h" 67} 68 69ark_gen_file("verification_gen_plugins_gen_inc") { 70 extra_dependencies = [ "$ark_root:concat_plugins_yamls" ] 71 template_file = "$ark_root/verification/gen/templates/plugins_gen.inc.erb" 72 data = [ ark_plugin_options_yaml ] 73 api = [ "$ark_root/templates/plugin_options.rb" ] 74 output_file = "$target_gen_dir/include/plugins_gen.inc" 75} 76 77ark_gen_file("verification_verifier_messages_data_cpp") { 78 template_file = 79 "$ark_root/verification/gen/templates/verifier_messages_data_gen.cpp.erb" 80 data = [ "$ark_root/verification/messages.yaml" ] 81 api = [ "$ark_root/templates/messages.rb" ] 82 output_file = "$target_gen_dir/../verifier_messages_data_gen.cpp" 83} 84