From f2dc5def00623c760c4292aa12a10dd9839f65c1 Mon Sep 17 00:00:00 2001 From: Xiao Liu <11095951+ljk321-0182@user.noreply.gitee.com> Date: Fri, 3 Jun 2022 09:05:55 +0800 Subject: [PATCH] Add ark_independent_build to dprof Change-Id: I6e45c4ca40a262741e071bf5bbb351a41944e4e7 Signed-off-by: Xiao Liu --- dprof/BUILD.gn | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/dprof/BUILD.gn b/dprof/BUILD.gn index 41d8695f92..950a464f92 100644 --- a/dprof/BUILD.gn +++ b/dprof/BUILD.gn @@ -11,8 +11,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("//ark/runtime_core/ark_config.gni") -import("//build/ohos.gni") +if (defined(ark_independent_build)) { + import("//runtime_core/ark_config.gni") + import("$build_root/ark.gni") +} else { + import("//ark/runtime_core/ark_config.gni") + import("//build/ohos.gni") +} config("libdprof_config") { include_dirs = [ @@ -39,9 +44,15 @@ source_set("libdprof_static") { deps = [ "$ark_root/libpandabase:libarkbase" ] } -ohos_static_library("libdprof") { - deps = [ ":libdprof_static" ] +if (!defined(ark_independent_build)) { + ohos_static_library("libdprof") { + deps = [ ":libdprof_static" ] - subsystem_name = "ark" - part_name = "ark" + subsystem_name = "ark" + part_name = "ark" + } +} else { + ark_static_library("libdprof") { + deps = [ ":libdprof_static" ] + } } -- Gitee