mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
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:
@@ -374,6 +374,16 @@ function exampleProjectDefaults()
|
||||
"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*" }
|
||||
kind "ConsoleApp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user