• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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/ark_config.gni")
15
16config("aot_manager_config") {
17  include_dirs = [
18    "$ark_root/compiler",
19    "$ark_root/compiler/aot",
20    "$ark_root/libpandabase",
21    "$ark_root/libpandafile",
22    "$ark_root/runtime",
23    "$target_gen_dir/../generated",
24    "$target_gen_dir/include",
25  ]
26}
27
28ohos_shared_library("libarkaotmanager") {
29  sources = [
30    "aot_file.cpp",
31    "aot_manager.cpp",
32  ]
33
34  configs = [
35    ":aot_manager_config",
36    "$ark_root:ark_config",
37    sdk_libc_secshared_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:intrinsics_stub_inl_h",
45    "$ark_root/compiler:ir_dyn_base_types_h",
46    "$ark_root/compiler:libarkcompiler",
47    "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_graph_inl",
48    "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_generate_operations_intrinsic_inst_inl",
49    "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_inl",
50    "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_names_inl",
51    "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsic_codegen_test_inl",
52    "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsics_enum_inl",
53    "$ark_root/compiler:libarkcompiler_intrinsics_gen_inl_intrinsics_ir_build_inl",
54    "$ark_root/libpandabase:libarkbase",
55    "$ark_root/libpandafile:libarkfile",
56    "$ark_root/runtime:arkruntime_gen_entrypoints_compiler_checksum_entrypoints_compiler_checksum_inl",
57    "$ark_root/runtime:arkruntime_gen_entrypoints_entrypoints_compiler_inl",
58    "$ark_root/runtime:arkruntime_gen_entrypoints_entrypoints_gen_h",
59    "$ark_root/runtime:plugins_entrypoints_gen_h",
60    sdk_libc_secshared_dep,
61  ]
62
63  output_extension = "so"
64  relative_install_dir = "ark"
65  part_name = "runtime_core"
66  subsystem_name = "arkcompiler"
67}
68