mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 03:40:22 +01:00
Previously, we included the stubs in our driver binaries, so they didn't call the actual system libraries for these functions. This was enough to build-test the Android code in CI without even the NDK. To make NDK-built Mesa drivers useful, we need to link against these system libraries that aren't present in the NDK. Split the symbols to separate non-installed shared libraries and link against those, so that when you drop the resulting .so in your /vendor/lib64/hw/, it just works out. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6805>
20 lines
304 B
C++
20 lines
304 B
C++
#include <cutils/properties.h>
|
|
#include <sync/sync.h>
|
|
#include <hardware/hardware.h>
|
|
#include <android/log.h>
|
|
#include <backtrace/Backtrace.h>
|
|
|
|
extern "C" {
|
|
|
|
/* timeout in msecs */
|
|
int sync_wait(int fd, int timeout)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int sync_merge(const char *name, int fd, int fd2)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
}
|