From f686b463d4c1462e0c1d427f9e21e8077c667b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=B4=E4=BC=9F=E7=90=A6?= Date: Wed, 26 Jul 2023 11:04:58 +0800 Subject: [PATCH] =?UTF-8?q?codec=E7=9A=84gn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 戴伟琦 --- .../codec_ndk_test/entry/src/main/cpp/BUILD.gn | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn index 76f97dd91..cf8d38c69 100644 --- a/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn +++ b/multimedia/media/media_js_standard/codec_ndk_test/entry/src/main/cpp/BUILD.gn @@ -29,16 +29,9 @@ config("config") { ohos_shared_library("entry") { sources = [ "./hello.cpp" ] - if (!(product_name == "m40")) { - if (target_cpu == "arm") { - libs = [ "${clang_base_path}/../libcxx-ndk/lib/arm-linux-ohos/c++/libc++_shared.so" ] - } else if (target_cpu == "arm64") { - libs = [ "${clang_base_path}/../libcxx-ndk/lib/aarch64-linux-ohos/c++/libc++_shared.so" ] - } else { - libs = [] - } + if (use_musl) { + libs = [ rebase_path(libcxx_ndk_shared_file) ] } - include_dirs = [ "../cpp", "$AVCODEC_ROOT_DIR/interfaces/kits/c/", -- GitLab