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