From 4665001e0d8c5112348dbfdc2da2e9d3f2f09b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=91=E5=B1=91=E5=B1=91?= Date: Wed, 13 Aug 2025 16:27:28 +0800 Subject: [PATCH] image gn update" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 屑屑屑 --- bundle.json | 3 ++- frameworks/kits/js/common/pixelmap_ndk/BUILD.gn | 14 ++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bundle.json b/bundle.json index 7e98c3b70..3a2d188a3 100644 --- a/bundle.json +++ b/bundle.json @@ -63,7 +63,8 @@ "runtime_core", "qos_manager", "eventhandler", - "ets_runtime" + "ets_runtime", + "neural_network_runtime" ], "third_party": [ "bounds_checking_function" diff --git a/frameworks/kits/js/common/pixelmap_ndk/BUILD.gn b/frameworks/kits/js/common/pixelmap_ndk/BUILD.gn index c9153bb2f..da9b517dd 100644 --- a/frameworks/kits/js/common/pixelmap_ndk/BUILD.gn +++ b/frameworks/kits/js/common/pixelmap_ndk/BUILD.gn @@ -16,6 +16,14 @@ import("//foundation/multimedia/image_framework/ide/image_decode_config.gni") SUBSYSTEM_DIR = "//foundation/multimedia/image_framework" +config("pixelmap_ndk_config") { + include_dirs = [ + "//foundation/multimedia/image_framework/interfaces/kits/native/include", + "//foundation/multimedia/image_framework/interfaces/innerkits/include", + "//foundation/multimedia/image_framework/interfaces/kits/js/common/ndk/include", + ] +} + ohos_shared_library("pixelmap_ndk") { sanitize = { cfi = true @@ -33,8 +41,7 @@ ohos_shared_library("pixelmap_ndk") { "image_pixel_map_ndk.cpp", ] - public_configs = - [ "$SUBSYSTEM_DIR/interfaces/innerkits:image_external_config" ] + public_configs = [ ":pixelmap_ndk_config" ] deps = [ "$SUBSYSTEM_DIR/interfaces/kits/js/common:image" ] external_deps = [ @@ -69,8 +76,7 @@ ohos_shared_library("pixelmap") { "pixelmap_native_impl.cpp", ] - public_configs = - [ "$SUBSYSTEM_DIR/interfaces/innerkits:image_external_config" ] + public_configs = [ ":pixelmap_ndk_config" ] deps = [ "$SUBSYSTEM_DIR/frameworks/innerkitsimpl/egl_image:egl_image", -- Gitee