From c6e4f528cb0cf1ca15b6f99fef71b270f753a076 Mon Sep 17 00:00:00 2001 From: Mohamed Shazan Date: Sat, 20 Jun 2020 20:35:12 +0530 Subject: [PATCH] Fix target extension on android for shared-library (#2175) * Fix target extension on android for shared-library * Add soname for linker To avoid runtime dlopen() errors --- scripts/bgfx.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bgfx.lua b/scripts/bgfx.lua index b19f40c77..b949a704c 100644 --- a/scripts/bgfx.lua +++ b/scripts/bgfx.lua @@ -69,6 +69,14 @@ function bgfxProjectBase(_kind, _defines) "GL", "pthread", } + configuration { "android*" } + targetextension ".so" + + configuration { "android*" ,"Debug"} + linkoptions{"-soname libbgfx-shared-libDebug.so" } + + configuration { "android*" ,"Release"} + linkoptions{"-soname libbgfx-shared-libRelease.so" } configuration {} end