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("//arkcompiler/ets_runtime/js_runtime_config.gni") 16import("../../../toolchain.gni") 17 18print("root_out_dir=$root_out_dir") 19print("root_build_dir=$root_build_dir") 20print("root_gen_dir=$root_gen_dir") 21print("default_toolchain=$default_toolchain") 22print("current_toolchain=$current_toolchain") 23print("host_toolchain=$host_toolchain") 24print("current_os=$current_os, current_cpu=$current_cpu") 25print("host_os=$host_os, host_cpu=$host_cpu") 26print("target_os=$target_os, target_cpu=$target_cpu") 27 28print() 29 30group("default") { 31 if (host_os != "mac") { 32 deps = [ 33 ":ets_frontend", 34 ":ets_runtime", 35 ":runtime_core", 36 ":toolchain", 37 ] 38 } 39} 40 41group("unittest_packages") { 42 testonly = true 43 if (host_os != "mac") { 44 deps = [ "$toolchain_root:ark_js_host_unittest" ] 45 } 46} 47 48group("ets_runtime") { 49 deps = [ 50 "$js_root:libark_jsruntime", 51 "$js_root/ecmascript/js_vm:ark_js_vm", 52 "$js_root/ecmascript/quick_fix:quick_fix", 53 ] 54 if ((target_os == "linux" && target_cpu == "x64") || 55 (target_cpu == "arm64" && target_os == "ohos")) { 56 deps += [ 57 "$js_root/ecmascript/compiler:ark_aot_compiler", 58 "$js_root/ecmascript/compiler:ark_stub_compiler", 59 ] 60 } 61} 62 63group("ets_frontend") { 64 if ((target_os == "linux" && target_cpu == "x64") || target_os == "mingw") { 65 deps = [ 66 "$ets_frontend_root/es2panda:es2panda", 67 "$ets_frontend_root/merge_abc:merge_abc", 68 ] 69 } 70} 71 72group("runtime_core") { 73 deps = [ 74 "$ark_root/assembler:ark_asm", 75 "$ark_root/disassembler:ark_disasm", 76 ] 77} 78 79group("toolchain") { 80 if (target_cpu != "mipsel") { 81 deps = [ 82 "$toolchain_root/inspector:ark_debugger", 83 "$toolchain_root/inspector:connectserver_debugger", 84 "$toolchain_root/tooling:libark_ecma_debugger", 85 ] 86 } 87} 88