Change the abc generation template from ts2abc to es2abc

Issue:https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I7D0BG

Signed-off-by: ctw-ian <chentingwei2@huawei.com>
Change-Id: Ibb05f590e0ddda1038d6ddaa6f05611c7d79978e
This commit is contained in:
ctw-ian 2023-06-13 10:58:10 +08:00
parent 2475dfc6f8
commit 71aa4f63f2
2 changed files with 4 additions and 4 deletions

View File

@ -11,12 +11,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni")
import("//arkcompiler/ets_frontend/es2panda/es2abc_config.gni")
import("//build/ohos.gni")
import("//foundation/ability/ability_runtime/ability_runtime.gni")
import("//foundation/arkui/ace_engine/build/ace_gen_obj.gni")
ts2abc_gen_abc("gen_abc_js_mock") {
es2abc_gen_abc("gen_abc_js_mock") {
js_mock_path =
get_label_info("//third_party/jsframework:gen_snapshot",
"target_out_dir") + "/dist/jsMockSystemPlugin.js"

View File

@ -11,12 +11,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni")
import("//arkcompiler/ets_frontend/es2panda/es2abc_config.gni")
import("//build/ohos.gni")
import("//foundation/arkui/ace_engine/build/ace_gen_obj.gni")
template("gen_js_src_binary") {
ts2abc_gen_abc("gen_abc_" + target_name) {
es2abc_gen_abc("gen_abc_" + target_name) {
src_js = rebase_path(invoker.js_source)
dst_file = rebase_path(target_out_dir + "/" +
get_path_info(invoker.js_source, "name") + ".abc")