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 76f97dd9175cc9df8c25a24916bc5c1273fe5fe1..cf8d38c69473d0148bb9bc4db7a7a44ad462fee7 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/",