From 188c5a1bdbc2108e80703a556a91c21e6d1a6bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=B4=E4=BC=9F=E7=90=A6?= Date: Fri, 30 Jun 2023 09:45:13 +0800 Subject: [PATCH] 0630 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 戴伟琦 --- .../entry/src/main/cpp/BUILD.gn | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/multimedia/audio/audio_js_standard/audio_ndk_test/entry/src/main/cpp/BUILD.gn b/multimedia/audio/audio_js_standard/audio_ndk_test/entry/src/main/cpp/BUILD.gn index cd8ea613b..2734004e3 100644 --- a/multimedia/audio/audio_js_standard/audio_ndk_test/entry/src/main/cpp/BUILD.gn +++ b/multimedia/audio/audio_js_standard/audio_ndk_test/entry/src/main/cpp/BUILD.gn @@ -14,8 +14,6 @@ import("//build/config/ohos/config.gni") import("//build/ohos.gni") import("//foundation/arkui/napi/napi.gni") - -AUDIO_ROOT_DIR = "//foundation/multimedia/audio_framework/" config("config") { visibility = [ ":*" ] cflags = [ @@ -26,27 +24,22 @@ config("config") { ] } - ohos_shared_library("audioNdkTest") { - sources = [ - "./napi/audioTest.cpp", - ] + sources = [ "./napi/audioTest.cpp" ] if (use_musl) { libs = [ rebase_path(libcxx_ndk_shared_file) ] } - include_dirs = [ - "$AUDIO_ROOT_DIR/interfaces/kits/c/", - "$AUDIO_ROOT_DIR/interfaces/kits/c/common/", - "$AUDIO_ROOT_DIR/interfaces/kits/c/audio_renderer/", - "$AUDIO_ROOT_DIR/interfaces/kits/c/audio_capturer/", + include_dirs = [ + "//foundation/multimedia/audio_framework/interfaces/kits/c/", + "//foundation/multimedia/audio_framework/interfaces/kits/c/common/", + "//foundation/multimedia/audio_framework/interfaces/kits/c/audio_renderer/", + "//foundation/multimedia/audio_framework/interfaces/kits/c/audio_capturer/", ] configs = [ ":config" ] deps = [ - "$AUDIO_ROOT_DIR/frameworks/native/ohaudio:ohaudio" - ] - external_deps = [ - "napi:ace_napi", + "//foundation/multimedia/audio_framework/frameworks/native/ohaudio:ohaudio", ] + external_deps = [ "napi:ace_napi" ] output_extension = "so" part_name = "audio_framework" -- GitLab