Small fix on soname defining on ldflags for Android examples. (#3184)

* Add linker options to add SONAME to the linked target so Android apps can dynamically resolve the library location from known locations (as opposed to a hard coded location often residing on the host cross compiling filesystem.

linked issue is,

https://github.com/bkaradzic/bgfx/pull/2176

* Kepp orginal code for linkoptions in the previous configuration block and add the additional linker flags for each Debug/Release configuration.

* Add comma character to EOL to match orginal code.
This commit is contained in:
Gareth Fare 2023-10-16 17:48:50 +01:00 committed by GitHub
parent 6054b49cef
commit 7c440b339f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,6 +374,16 @@ function exampleProjectDefaults()
"GLESv2", "GLESv2",
} }
configuration { "android*", "Debug" }
linkoptions {
"-Wl,-soname,lib" .. project().name .. "Debug.so"
}
configuration { "android*", "Release" }
linkoptions {
"-Wl,-soname,lib" .. project().name .. "Release.so"
}
configuration { "wasm*" } configuration { "wasm*" }
kind "ConsoleApp" kind "ConsoleApp"