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") 15import("//build/ohos.gni") 16 17config("aot_manager_config") { 18 include_dirs = [ 19 "$ark_root/compiler", 20 "$ark_root/compiler/aot", 21 "$ark_root/libpandabase", 22 "$ark_root/libpandafile", 23 "$ark_root/runtime", 24 "$target_gen_dir/../generated", 25 "$target_gen_dir/include", 26 ] 27} 28 29ohos_shared_library("libarkaotmanager") { 30 sources = [ 31 "aot_file.cpp", 32 "aot_manager.cpp", 33 ] 34 35 configs = [ 36 ":aot_manager_config", 37 "$ark_root:ark_config", 38 "$ark_root/libpandabase:arkbase_public_config", 39 "$ark_root/libpandafile:arkfile_public_config", 40 "$ark_root/runtime:arkruntime_public_config", 41 ] 42 43 deps = [ 44 "$ark_root/compiler:ir_dyn_base_types_h", 45 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_graph_inl", 46 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_inst_inl", 47 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_inl", 48 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_names_inl", 49 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsic_codegen_test_inl", 50 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsics_enum_inl", 51 "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsics_ir_build_inl", 52 "$ark_root/compiler:libarktscompiler", 53 "$ark_root/libpandabase:libarktsbase", 54 "$ark_root/libpandafile:libarktsfile", 55 "$ark_root/runtime:arkruntime_gen_entrypoints_compiler_checksum_entrypoints_compiler_checksum_inl", 56 "$ark_root/runtime:arkruntime_gen_entrypoints_entrypoints_compiler_inl", 57 "$ark_root/runtime:arkruntime_gen_entrypoints_entrypoints_gen_h", 58 "$ark_root/runtime:plugins_entrypoints_gen_h", 59 ] 60 61 external_deps = [ sdk_libc_secshared_dep ] 62 63 output_extension = "so" 64 part_name = ark_part_name 65 subsystem_name = "$ark_subsystem_name" 66} 67