• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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/toolchain/toolchain.gni")
15import("$build_root/config/components/ets_frontend/ets_frontend_config.gni")
16
17print("root_out_dir=$root_out_dir")
18print("root_build_dir=$root_build_dir")
19print("root_gen_dir=$root_gen_dir")
20print("default_toolchain=$default_toolchain")
21print("current_toolchain=$current_toolchain")
22print("host_toolchain=$host_toolchain")
23print("current_os=$current_os,   current_cpu=$current_cpu")
24print("host_os=$host_os,      host_cpu=$host_cpu")
25print("target_os=$target_os,    target_cpu=$target_cpu")
26
27print()
28
29group("default") {
30  deps = [
31    ":ets_frontend",
32    ":ets_runtime",
33    ":runtime_core",
34    ":toolchain",
35  ]
36}
37
38group("unittest_packages") {
39  testonly = true
40  deps = [
41    "$js_root:ark_runtime_host_unittest",
42    "$toolchain_root:ark_toolchain_host_unittest",
43  ]
44}
45
46group("runtime_core_unittest_packages") {
47  testonly = true
48  deps = [ "$toolchain_root:runtime_core_host_ut" ]
49}
50
51group("ets_runtime") {
52  deps = [
53    "$js_root:js_type_metadata",
54    "$js_root:libark_jsruntime",
55    "$js_root/ecmascript/dfx/hprof:ark_js_heap_snapshot_tool",
56    "$js_root/ecmascript/dfx/hprof/rawheap_translate:rawheap_translator",
57    "$js_root/ecmascript/js_vm:ark_js_vm",
58    "$js_root/ecmascript/quick_fix:quick_fix",
59  ]
60  if ((target_os == "linux" && target_cpu == "x64") ||
61      (target_cpu == "arm64" && target_os == "ohos") ||
62      (target_cpu == "arm64" && target_os == "mac")) {
63    deps += [
64      "$js_root/ecmascript/compiler:ark_aot_compiler",
65      "$js_root/ecmascript/compiler:ark_stub_compiler",
66      "$js_root/ecmascript/compiler:libark_jsoptimizer",
67      "$js_root/ecmascript/compiler:stub.an",
68      "$js_root/ecmascript/pgo_profiler/prof_dump:profdump",
69    ]
70  }
71}
72
73group("ets_frontend") {
74  if ((target_os == "linux" && target_cpu == "x64") || target_os == "mingw" ||
75      target_os == "mac") {
76    deps = [
77      "$ets_frontend_root/es2panda:es2panda",
78      "$ets_frontend_root/merge_abc:merge_abc",
79    ]
80  }
81}
82
83group("runtime_core") {
84  deps = [
85    "$ark_root:ark_host_defectscanaux_tools",
86    "$ark_root/disassembler:ark_disasm",
87  ]
88}
89
90group("static_core") {
91  deps = [
92    "$ark_root/static_core/assembler:libarktsassembler",
93    "$ark_root/static_core/compiler:libarktscompiler",
94    "$ark_root/static_core/libpandabase:libarktsbase",
95    "$ark_root/static_core/libpandafile:libarktsfile",
96  ]
97}
98
99group("toolchain") {
100  deps = []
101  if (target_cpu != "mipsel") {
102    deps += [
103      "$toolchain_root/inspector:ark_debugger",
104      "$toolchain_root/inspector:connectserver_debugger",
105      "$toolchain_root/tooling:libark_ecma_debugger",
106    ]
107  }
108  if (target_os != "mingw") {
109    deps += [
110      "$toolchain_root/tooling/client:libark_client",
111      "$toolchain_root/tooling/client/ark_cli:arkdb",
112      "$toolchain_root/tooling/client/ark_multi:ark_multi",
113    ]
114  }
115}
116