• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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/libabckit/abckit_config.gni")
15import("//arkcompiler/runtime_core/static_core/ark_config.gni")
16import("//arkcompiler/runtime_core/static_vm_config.gni")
17
18ohos_source_set("libabckit_graph_wrapper_source_set") {
19  sources = [ "graph_wrapper.cpp" ]
20
21  cross_values_gen_dir = get_label_info(
22          "$ark_root_static/cross_values:cross_values_getters_generate(${default_toolchain})",
23          "target_gen_dir")
24  entrypoints_compiler_gen_dir = get_label_info(
25          "$ark_root_static/runtime:arkruntime_gen_entrypoints_entrypoints_compiler_inl",
26          "target_gen_dir")
27  bytecode_inst_enum_gen_dir = get_label_info(
28          "$abckit_root/src/irbuilder_dynamic/templates:abckit_isa_gen_bytecode_inst_enum_gen_h",
29          "target_gen_dir")
30  intrinsics_gen_dir = get_label_info(
31          "$abckit_root/src/templates/dyn_intrinsics:abckit_isa_gen_dyn_intrinsics_enum_inl",
32          "target_gen_dir")
33  reg_encoder_visitors_dir =
34      get_label_info(
35          "$ark_root_static/bytecode_optimizer:reg_encoder_visitors_inc",
36          "target_gen_dir")
37  codegen_visitors_dyn_dir =
38      get_label_info(
39          "$abckit_root/src/codegen/templates_dynamic:codegen_visitors_dyn_inc",
40          "target_gen_dir")
41  ins_create_wrapper_dyn_dir =
42      get_label_info(
43          "$abckit_root/src/wrappers:abckit_isa_gen_ins_create_wrapper_api_inc",
44          "target_gen_dir")
45  include_dirs = [
46    "$ark_root_static/runtime/libpandabase",
47    "$ark_root_static/runtime",
48    "$entrypoints_compiler_gen_dir/generated",
49    "$bytecode_inst_enum_gen_dir/..",
50    "$intrinsics_gen_dir/../generated",
51    "$reg_encoder_visitors_dir",
52    "$codegen_visitors_dyn_dir/..",
53    "$cross_values_gen_dir",
54    "$ins_create_wrapper_dyn_dir",
55    "$ark_root_static",  # this target should not include headers from dynamic
56
57    # runtime,
58
59    # so static_core must be listed first
60    "$ark_root_static/..",
61  ]
62
63  part_name = "runtime_core"
64  subsystem_name = "arkcompiler"
65
66  configs = [
67    "$ark_root_static/:ark_config",
68    "$ark_root_static/assembler:arkassembler_public_config",
69    "$ark_root_static/compiler:arkcompiler_public_config",
70    "$ark_root_static/libpandabase:arkbase_public_config",
71    "$ark_root_static/libpandafile:arkfile_public_config",
72    "$ark_root_static/runtime:profiling_gen_public_config",
73    "$abckit_root:abckit_config",
74  ]
75
76  deps = [ "$ark_root_static/compiler:libarktscompiler" ]
77}
78