Merge pull request #308 from ianelliottus/ian_160727b_AndroidFixes

Fix problems when building on Linux for Android
This commit is contained in:
Baldur Karlsson
2016-07-28 00:57:07 +02:00
committed by GitHub
5 changed files with 9 additions and 2 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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;
}
+5 -1
View File
@@ -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"