mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Android build fixes
This commit is contained in:
@@ -41,7 +41,7 @@ set(sources
|
||||
set(definitions ${RDOC_DEFINITIONS})
|
||||
|
||||
if(ANDROID)
|
||||
list(APPEND sources vk_posix.cpp vk_android.cpp)
|
||||
list(APPEND sources vk_posix.cpp vk_android.cpp vk_tracelayer_android.cpp)
|
||||
list(APPEND definitions PRIVATE -DVK_USE_PLATFORM_ANDROID_KHR)
|
||||
elseif(UNIX)
|
||||
list(APPEND sources vk_posix.cpp vk_linux.cpp)
|
||||
|
||||
@@ -77,11 +77,11 @@ void handle_cmd(android_app *app, int32_t cmd)
|
||||
__android_log_print(ANDROID_LOG_INFO, LOGCAT_TAG,
|
||||
"APP_CMD_INIT_WINDOW: android_state->window: %p", android_state->window);
|
||||
|
||||
char *argv[] = {
|
||||
const char *argv[] = {
|
||||
"renderdoccmd", "/sdcard/capture.rdc",
|
||||
};
|
||||
int argc = sizeof(argv) / sizeof(argv[0]);
|
||||
renderdoccmd(argc, argv);
|
||||
renderdoccmd(argc, (char **)argv);
|
||||
break;
|
||||
}
|
||||
case APP_CMD_TERM_WINDOW:
|
||||
|
||||
Reference in New Issue
Block a user