1# Copyright (c) 2025 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("//build/config/components/ets_frontend/ets2abc_config.gni") 15import("//build/ohos.gni") 16 17npm_path = "//prebuilts/build-tools/common/nodejs/current/bin/npm" 18 19action("build_build_system") { 20 script = "build_build_system.py" 21 22 args = [ 23 "--source_path", 24 rebase_path(get_path_info(".", "abspath")), 25 "--output_path", 26 rebase_path("$target_gen_dir"), 27 "--npm", 28 rebase_path(npm_path), 29 ] 30 31 outputs = [ "$target_gen_dir" ] 32} 33 34ohos_copy("ets2panda_build_system") { 35 deps = [ ":build_build_system" ] 36 sources = [ rebase_path("$target_gen_dir") ] 37 outputs = [ target_out_dir + "/$target_name" ] 38 module_source_dir = target_out_dir + "/$target_name" 39 module_install_name = "" 40 part_name = "ets_frontend" 41 subsystem_name = "arkcompiler" 42} 43 44ohos_copy("ohos_ets_build_system") { 45 deps = [ ":build_build_system" ] 46 sources = [ rebase_path("$target_gen_dir") ] 47 outputs = [ ohos_ets_build_system_path ] 48 part_name = "ets_frontend" 49 subsystem_name = "arkcompiler" 50} 51