util: Add property_get() fallback for android
authorRob Clark <robdclark@chromium.org>
Tue, 24 Nov 2020 20:38:47 +0000 (12:38 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Nov 2020 22:21:13 +0000 (22:21 +0000)
commiteeecc21d935c6c8fc783d9f805b5fa153b455df5
treed4cc0ae578e180edfc1c237138f24394c9ec6e44
parent73c6899285da9b93d5d140b44bca8a1a79afacad
util: Add property_get() fallback for android

Environment variables aren't the easiest thing to use on android.  So
add a fallback to android's property mechanism for os_get_option().

This is slightly complicated by the fact that the assumption that the
return value of os_get_option() need not be freed.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7763>
src/util/os_misc.c