13af6ab5fSopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd. 23af6ab5fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 33af6ab5fSopenharmony_ci# you may not use this file except in compliance with the License. 43af6ab5fSopenharmony_ci# You may obtain a copy of the License at 53af6ab5fSopenharmony_ci# 63af6ab5fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 73af6ab5fSopenharmony_ci# 83af6ab5fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 93af6ab5fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 103af6ab5fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 113af6ab5fSopenharmony_ci# See the License for the specific language governing permissions and 123af6ab5fSopenharmony_ci# limitations under the License. 133af6ab5fSopenharmony_ci 143af6ab5fSopenharmony_ciimport("//arkcompiler/runtime_core/static_core/ark_config.gni") 153af6ab5fSopenharmony_ciimport("//build/ohos.gni") 163af6ab5fSopenharmony_ci 173af6ab5fSopenharmony_ciohos_executable("declgen_ets2ts") { 183af6ab5fSopenharmony_ci sources = [ 193af6ab5fSopenharmony_ci "declgenEts2Ts.cpp", 203af6ab5fSopenharmony_ci "main.cpp", 213af6ab5fSopenharmony_ci ] 223af6ab5fSopenharmony_ci 233af6ab5fSopenharmony_ci include_dirs = [ "$target_gen_dir" ] 243af6ab5fSopenharmony_ci 253af6ab5fSopenharmony_ci configs = [ 263af6ab5fSopenharmony_ci "$ark_root:ark_config", 273af6ab5fSopenharmony_ci "$ark_es2panda_root:libes2panda_public_config", 283af6ab5fSopenharmony_ci "$ark_root/assembler:arkassembler_public_config", 293af6ab5fSopenharmony_ci "$ark_root/libpandafile:arkfile_public_config", 303af6ab5fSopenharmony_ci "$ark_root/libpandabase:arkbase_public_config", 313af6ab5fSopenharmony_ci "$ark_root/bytecode_optimizer:bytecodeopt_public_config", 323af6ab5fSopenharmony_ci "$ark_root/compiler:arkcompiler_public_config", 333af6ab5fSopenharmony_ci "$ark_root/runtime:arkruntime_public_config", 343af6ab5fSopenharmony_ci ] 353af6ab5fSopenharmony_ci 363af6ab5fSopenharmony_ci deps = [ 373af6ab5fSopenharmony_ci "$ark_es2panda_root:libes2panda_frontend_static", 383af6ab5fSopenharmony_ci "$ark_es2panda_root:libes2panda_public_frontend_static", 393af6ab5fSopenharmony_ci ] 403af6ab5fSopenharmony_ci external_deps = [ 413af6ab5fSopenharmony_ci "runtime_core:libarktsassembler_package", 423af6ab5fSopenharmony_ci "runtime_core:libarktsbase_package", 433af6ab5fSopenharmony_ci "runtime_core:libarktsbytecodeopt_package", 443af6ab5fSopenharmony_ci "runtime_core:libarktscompiler_package", 453af6ab5fSopenharmony_ci "runtime_core:libarktsfile_package", 463af6ab5fSopenharmony_ci ] 473af6ab5fSopenharmony_ci 483af6ab5fSopenharmony_ci libs = platform_libs 493af6ab5fSopenharmony_ci ldflags = platform_ldflags 503af6ab5fSopenharmony_ci if (is_linux) { 513af6ab5fSopenharmony_ci libs += [ "stdc++fs" ] 523af6ab5fSopenharmony_ci } 533af6ab5fSopenharmony_ci 543af6ab5fSopenharmony_ci install_enable = true 553af6ab5fSopenharmony_ci part_name = "ets_frontend" 563af6ab5fSopenharmony_ci subsystem_name = "arkcompiler" 573af6ab5fSopenharmony_ci} 58