• 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/ets_frontend/ets_frontend_config.gni")
15import("../../../toolchain.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 = [ "$toolchain_root:ark_js_host_unittest" ]
41}
42
43group("ets_runtime") {
44  deps = [
45    "$js_root:js_type_metadata",
46    "$js_root:libark_jsruntime",
47    "$js_root/ecmascript/dfx/hprof:ark_js_heap_snapshot_tool",
48    "$js_root/ecmascript/dfx/hprof/rawheap_translate:rawheap_translator",
49    "$js_root/ecmascript/js_vm:ark_js_vm",
50    "$js_root/ecmascript/quick_fix:quick_fix",
51  ]
52  if ((target_os == "linux" && target_cpu == "x64") ||
53      (target_cpu == "arm64" && target_os == "ohos") ||
54      (target_cpu == "arm64" && target_os == "mac")) {
55    deps += [
56      "$js_root/ecmascript/compiler:ark_aot_compiler",
57      "$js_root/ecmascript/compiler:ark_stub_compiler",
58      "$js_root/ecmascript/compiler:libark_jsoptimizer",
59      "$js_root/ecmascript/compiler:stub.an",
60      "$js_root/ecmascript/pgo_profiler/prof_dump:profdump",
61    ]
62  }
63}
64
65group("ets_frontend") {
66  if ((target_os == "linux" && target_cpu == "x64") || target_os == "mingw" ||
67      target_os == "mac") {
68    deps = [
69      "$ets_frontend_root/es2panda:es2panda",
70      "$ets_frontend_root/merge_abc:merge_abc",
71    ]
72  }
73}
74
75group("runtime_core") {
76  deps = [
77    "$ark_root:ark_host_defectscanaux_tools",
78    "$ark_root/disassembler:ark_disasm",
79  ]
80}
81
82group("toolchain") {
83  deps = []
84  if (target_cpu != "mipsel") {
85    deps += [
86      "$toolchain_root/inspector:ark_debugger",
87      "$toolchain_root/inspector:connectserver_debugger",
88      "$toolchain_root/tooling:libark_ecma_debugger",
89    ]
90  }
91  if (target_os != "mingw") {
92    deps += [
93      "$toolchain_root/tooling/client:libark_client",
94      "$toolchain_root/tooling/client/ark_cli:arkdb",
95      "$toolchain_root/tooling/client/ark_multi:ark_multi",
96    ]
97  }
98}
99