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
This commit is contained in:
Mohamed Shazan
2020-06-20 20:35:12 +05:30
committed by GitHub
parent ce4fecc53e
commit c6e4f528cb

View File

@@ -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