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 cd8ea613b4f5983769a1f0b4d8e6f0fb6e2c4ac1..2734004e3ee114b34bc9f2678c21e70d5057ba26 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"