• 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/ark_config.gni")
15import("//arkcompiler/runtime_core/libabckit/abckit_config.gni")
16
17ark_isa_gen("abckit_isa_gen") {
18  template_files = [
19    "opc_to_string.h.erb",
20    "ins_create_wrapper_api.inc.erb",
21  ]
22  sources = "templates"
23  destination = "$target_gen_dir/generated"
24  requires = [
25    "$ark_root_dynamic/assembler/asm_isapi.rb",
26    "$ark_root_dynamic/libpandafile/pandafile_isapi.rb",
27  ]
28}
29
30group("abckit_pandasm_wrapper_source_set_header_deps") {
31  deps = [
32    ":abckit_isa_gen_ins_create_wrapper_api_inc",
33    ":abckit_isa_gen_opc_to_string_h",
34  ]
35}
36
37ohos_source_set("abckit_pandasm_wrapper_source_set") {
38  sources = [ "pandasm_wrapper.cpp" ]
39
40  include_dirs = [
41    "$ark_root_dynamic",
42    "$target_gen_dir",
43  ]
44
45  part_name = "runtime_core"
46  subsystem_name = "arkcompiler"
47
48  configs = [
49    "$ark_root_dynamic/:ark_config",
50    "$ark_root_dynamic/assembler:arkassembler_public_config",
51    "$ark_root_dynamic/libpandafile:arkfile_public_config",
52    "$ark_root_dynamic/libpandabase:arkbase_public_config",
53    "$abckit_root:abckit_config",
54  ]
55
56  deps = [
57    ":abckit_pandasm_wrapper_source_set_header_deps",
58    "$ark_root_dynamic/assembler:libarkassembler",
59  ]
60}
61
62ohos_source_set("abckit_abcfile_wrapper_source_set") {
63  sources = [ "abcfile_wrapper.cpp" ]
64
65  part_name = "runtime_core"
66  subsystem_name = "arkcompiler"
67
68  configs = [
69    "$ark_root_dynamic:ark_config",
70    "$ark_root_dynamic/libpandafile:arkfile_public_config",
71    "$ark_root_dynamic/libpandabase:arkbase_public_config",
72    "$abckit_root:abckit_config",
73  ]
74
75  deps = [ "$ark_root_dynamic/assembler:libarkassembler" ]
76}
77