From 71f28acba7e9ed381f4b3d1e401c18bee597a10f Mon Sep 17 00:00:00 2001 From: xuhangqi Date: Mon, 8 Sep 2025 20:25:17 +0800 Subject: [PATCH] Support libabckit static lib Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICWZQU Signed-off-by: xuhangqi Change-Id: Ib4b67b64c1ffdcc32a891a213f63d2a1e06a353b --- libabckit/BUILD.gn | 1 + libabckit/src/BUILD.gn | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/libabckit/BUILD.gn b/libabckit/BUILD.gn index 910d03d953..a06e492387 100644 --- a/libabckit/BUILD.gn +++ b/libabckit/BUILD.gn @@ -75,6 +75,7 @@ group("abckit_packages") { deps = [ "abckit:abckit(${host_toolchain})", "src:libabckit", + "src:libabckit_static", ] } } diff --git a/libabckit/src/BUILD.gn b/libabckit/src/BUILD.gn index 23833d9f0f..f9b95dfd9d 100644 --- a/libabckit/src/BUILD.gn +++ b/libabckit/src/BUILD.gn @@ -148,3 +148,27 @@ ohos_source_set("libabckit_mock") { part_name = "runtime_core" subsystem_name = "arkcompiler" } + +group("libabckit_all") { + deps = [] + deps += libabckit_so_deps + deps += [":libabckit_source_set"] + deps += [ + "$ark_root_static/abc2program:arkts_abc2program_static", + "$ark_root_static/assembler:libarktsassembler_frontend_static", + "$ark_root_static/bytecode_optimizer:libarktsbytecodeopt_frontend_static", + "$ark_root_static/libpandabase:libarktsbase_frontend_static", + "$ark_root_static/libarkfile:libarktsfile_frontend_static", + ] +} + +ohos_static_library("libabckit_static") { + deps = [":libabckit_all"] + include_dirs = libabckit_include_dirs + configs = [ "$abckit_root:abckit_config" ] + + complete_static_lib = true + + part_name = "runtime_core" + subsystem_name = "arkcompiler" +} -- Gitee