mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Merge pull request #308 from ianelliottus/ian_160727b_AndroidFixes
Fix problems when building on Linux for Android
This commit is contained in:
@@ -18,6 +18,7 @@ if(ANDROID)
|
||||
list(APPEND RDOC_LIBRARIES
|
||||
PRIVATE m
|
||||
PRIVATE dl
|
||||
PRIVATE log
|
||||
PRIVATE ${CMAKE_THREAD_LIBS_INIT})
|
||||
elseif(APPLE)
|
||||
list(APPEND RDOC_LIBRARIES
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
void VulkanReplay::OutputWindow::SetWindowHandle(WindowingSystem system, void *data)
|
||||
{
|
||||
RDCASSERT(system == eWindowingSystem_Android, system);
|
||||
wnd = (ANativeWindow *)wn;
|
||||
wnd = (ANativeWindow *)data;
|
||||
m_WindowSystem = system;
|
||||
}
|
||||
|
||||
|
||||
@@ -108,8 +108,12 @@ bool WrappedVulkan::AddRequiredExtensions(bool instance, vector<string> &extensi
|
||||
|
||||
if(!oneSurfaceTypeSupported)
|
||||
{
|
||||
RDCERR("Required at least one of '%s' or '%s' extension to be present",
|
||||
#if defined(VK_USE_PLATFORM_ANDROID_KHR)
|
||||
RDCERR("Require the '%s' extension to be present", VK_KHR_ANDROID_SURFACE_EXTENSION_NAME);
|
||||
#elif defined(VK_USE_PLATFORM_XCB_KHR) || defined(VK_USE_PLATFORM_XLIB_KHR)
|
||||
RDCERR("Require either the '%s' or '%s' extension to be present",
|
||||
VK_KHR_XCB_SURFACE_EXTENSION_NAME, VK_KHR_XLIB_SURFACE_EXTENSION_NAME);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@ bool debuggerPresent = false;
|
||||
void CacheDebuggerPresent()
|
||||
{
|
||||
FILE *f = FileIO::fopen("/proc/self/status", "r");
|
||||
int ret = 0;
|
||||
|
||||
if(f == NULL)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
******************************************************************************/
|
||||
|
||||
#include <android/log.h>
|
||||
#include <unistd.h>
|
||||
#include "os/os_specific.h"
|
||||
|
||||
#define LOGCAT_TAG "renderdoc"
|
||||
|
||||
Reference in New Issue
Block a user