From 359c4300be41c7bda76368744002e21df95ced51 Mon Sep 17 00:00:00 2001 From: "Meng.Lv" Date: Tue, 30 Apr 2024 09:33:32 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:=20NA=20:=20=E9=9F=B3=E9=A2=91=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=E7=BB=84=E4=BB=B6=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91?= =?UTF-8?q?(4/5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: 音频框架组件独立编译 Sig: SIG_MultiMedia Feature or Bugfix: Feature Binary Source: No Signed-off-by: Meng.Lv Change-Id: Iea66b70cfb9735600737d6ce619b0bcc14895f4e --- BUILD.gn | 6 ++++++ bundle.json | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 6f00df43..ac860265 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -31,6 +31,10 @@ config("sndfile_config") { ] } +config("export_include_config") { + include_dirs = [ "include" ] +} + ohos_source_set("sndfile_sources") { sources = [ "src/ALAC/ALACBitUtilities.c", @@ -133,6 +137,8 @@ ohos_source_set("sndfile_sources") { ohos_shared_library("sndfile") { deps = [ ":sndfile_sources" ] + public_configs = [ ":export_include_config" ] + innerapi_tags = [ "platformsdk_indirect" ] subsystem_name = "thirdparty" part_name = "libsnd" diff --git a/bundle.json b/bundle.json index bf48f2a3..147b74f4 100644 --- a/bundle.json +++ b/bundle.json @@ -26,7 +26,18 @@ }, "build": { "sub_component": [], - "inner_kits": [], + "inner_kits": [ + { + "name" : "//third_party/libsnd:sndfile", + "header": { + "header_files": [ + "config.h", + "sndfile.h" + ], + "header_base": "//third_party/libsnd/include" + } + } + ], "test": [] } }