mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
cmake: Add option for custom RenderDocCmd.apk location
This commit is contained in:
committed by
Baldur Karlsson
parent
efac8d85ac
commit
e69fb7f9e2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user