From 7331fb699c260877ea2c65068cbf6a8252d8ccdb Mon Sep 17 00:00:00 2001 From: dongchao Date: Sat, 26 Jul 2025 22:21:22 +0800 Subject: [PATCH] [build] cherry-pick from 0603 to master Issue: https://gitee.com/openharmony/build/issues/ICP0WZ Signed-off-by: dongchao Change-Id: I2a27f76b3675c6a281136bbf7a8c8310a5cf6f88 --- bundle.json | 3 +++ ets2panda/BUILD.gn | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/bundle.json b/bundle.json index 80c4a61093..dbf6650144 100644 --- a/bundle.json +++ b/bundle.json @@ -44,6 +44,9 @@ }, { "name": "//arkcompiler/ets_frontend/ets2panda:libes2panda_public" + }, + { + "name": "//arkcompiler/ets_frontend/ets2panda:libes2panda_public_headers" } ], "test": [ diff --git a/ets2panda/BUILD.gn b/ets2panda/BUILD.gn index d464559f73..5e8277ab20 100644 --- a/ets2panda/BUILD.gn +++ b/ets2panda/BUILD.gn @@ -1229,6 +1229,15 @@ ohos_shared_library("libes2panda_public") { subsystem_name = "arkcompiler" } +if (!(defined(ark_static_standalone_build) && ark_static_standalone_build)) { + ohos_shared_headers("libes2panda_public_headers") { + include_dirs = [ "$ark_es2panda_root/public" ] + deps = [ ":libes2panda_public" ] + part_name = "ets_frontend" + subsystem_name = "arkcompiler" + } +} + action("generate_ets2panda_info") { script = "$ark_root/gn/build/es2panda_info.sh" outputs = [ "$target_gen_dir/generated/es2panda_build_info.h" ] -- Gitee