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:
parent
6054b49cef
commit
7c440b339f
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user