1# Copyright (c) 2021-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/runtime_core/ark_config.gni") 15import("//build/ohos.gni") 16 17group("ark_packages") { 18 deps = [] 19} 20 21group("ark_host_linux_tools_packages") { 22} 23 24group("ark_host_windows_tools_packages") { 25} 26 27group("ark_host_mac_tools_packages") { 28} 29 30config("ark_config") { 31 defines = [ "PANDA_WITH_ECMASCRIPT" ] 32} 33 34config("assembler") { 35 include_dirs = [ 36 "$ark_root/plugins/ecmascript/assembler/extension", 37 "$target_gen_dir", 38 ] 39} 40 41group("assembler_deps") { 42 deps = [ ":ark_asm_ecmascript_meta_gen_h" ] 43} 44 45ark_gen_file("ark_asm_ecmascript_meta_gen_h") { 46 template_file = "$ark_root/assembler/templates/meta_gen.cpp.erb" 47 data_file = "$ark_root/plugins/ecmascript/assembler/extension/metadata.yaml" 48 requires = [ "$ark_root/assembler/asm_metadata.rb" ] 49 output_file = "$target_gen_dir/ecmascript_meta_gen.h" 50} 51