diff --git a/CMakeLists.txt b/CMakeLists.txt index 1911fdd52..e823b12a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,7 @@ option(BUILD_VERSION_STABLE "If this is a stable build. See RENDERDOC_STABLE_BUI set(BUILD_VERSION_DIST_NAME "" CACHE STRING "The name of the distribution. See DISTRIBUTION_NAME in renderdoc/api/replay/version.h") set(BUILD_VERSION_DIST_VER "" CACHE STRING "The distribution-specific version number. See DISTRIBUTION_VERSION in renderdoc/api/replay/version.h") set(BUILD_VERSION_DIST_CONTACT "" CACHE STRING "The URL or email to contact with issues. See DISTRIBUTION_CONTACT in renderdoc/api/replay/version.h") +set(RENDERDOC_APK_PATH "" CACHE STRING "Path to RenderDocCmd.apk after installation of RenderDoc on host (either absolute or relative to binary)") if(BUILD_VERSION_STABLE) add_definitions(-DRENDERDOC_STABLE_BUILD=1) @@ -53,6 +54,11 @@ if(NOT BUILD_VERSION_DIST_CONTACT STREQUAL "") add_definitions(-DDISTRIBUTION_CONTACT="${BUILD_VERSION_DIST_CONTACT}") endif() +if(NOT RENDERDOC_APK_PATH STREQUAL "") + message(STATUS "Detected custom path to RenderDocCmd.apk: ${RENDERDOC_APK}") + add_definitions(-DRENDERDOC_APK_PATH="${RENDERDOC_APK_PATH}") +endif() + function(get_git_hash _git_hash) if(EXISTS "${CMAKE_SOURCE_DIR}/.git") execute_process(