# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//arkcompiler/runtime_core/ark_config.gni") config("aot_manager_config") { include_dirs = [ "$ark_root/compiler", "$ark_root/compiler/aot", "$ark_root/libpandabase", "$ark_root/libpandafile", "$ark_root/runtime", "$target_gen_dir/../generated", "$target_gen_dir/include", ] } ohos_shared_library("libarkaotmanager") { sources = [ "aot_file.cpp", "aot_manager.cpp", ] configs = [ ":aot_manager_config", "$ark_root:ark_config", sdk_libc_secshared_config, "$ark_root/libpandabase:arkbase_public_config", "$ark_root/libpandafile:arkfile_public_config", "$ark_root/runtime:arkruntime_public_config", ] deps = [ "$ark_root/compiler:intrinsics_stub_inl_h", "$ark_root/compiler:ir_dyn_base_types_h", "$ark_root/compiler:libarkcompiler", "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_graph_inl", "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_inst_inl", "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_inl", "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_names_inl", "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsic_codegen_test_inl", "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsics_enum_inl", "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsics_ir_build_inl", "$ark_root/libpandabase:libarkbase", "$ark_root/libpandafile:libarkfile", "$ark_root/runtime:arkruntime_gen_entrypoints_compiler_checksum_entrypoints_compiler_checksum_inl", "$ark_root/runtime:arkruntime_gen_entrypoints_entrypoints_compiler_inl", "$ark_root/runtime:arkruntime_gen_entrypoints_entrypoints_gen_h", "$ark_root/runtime:plugins_entrypoints_gen_h", sdk_libc_secshared_dep, ] output_extension = "so" relative_install_dir = "ark" part_name = "runtime_core" subsystem_name = "arkcompiler" }