Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions framework/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,30 @@ if(NOT ANDROID)
common_build_directives(${BENCHMARK_TARGET_NAME})
endif()

if(ANDROID AND (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm"))
# RenderDoc plugin
set(RDC_TARGET_NAME gfxrecon_renderdoc_replay_plugin)
add_library(${RDC_TARGET_NAME}
MODULE
${CMAKE_CURRENT_LIST_DIR}/renderdoc/renderdoc_replay_plugin.cpp)
target_include_directories(${RDC_TARGET_NAME}
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/renderdoc)
target_link_libraries(${RDC_TARGET_NAME}
PRIVATE
${GFXR_REPLAY_PLUGIN_ABI_TARGET_NAME}
gfxrecon_util)
target_link_options(${RDC_TARGET_NAME} PRIVATE "-Wl,-z,max-page-size=16384")
endif()

# Tests
if(${RUN_TESTS})
set(TEST_TARGET_NAME gfxrecon_replay_event_plugin_loader_test)
add_executable(${TEST_TARGET_NAME} "")
target_sources(${TEST_TARGET_NAME}
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/test/main.cpp
${CMAKE_CURRENT_LIST_DIR}/test/test_renderdoc_replay_plugin.cpp
${CMAKE_CURRENT_LIST_DIR}/../../tools/platform_debug_helper.cpp)
target_link_libraries(${TEST_TARGET_NAME}
PUBLIC
Expand Down
7 changes: 7 additions & 0 deletions framework/plugin/renderdoc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# RenderDoc API Header File

## Source Information
The `renderdoc_app.h` file in this directory is a public header downloaded from the official RenderDoc repository to support compiling the RenderDoc replay plugin with the in-application API.

* **Source URL**: [https://raw.githubusercontent.com/baldurk/renderdoc/v1.x/renderdoc/api/app/renderdoc_app.h](https://raw.githubusercontent.com/baldurk/renderdoc/v1.x/renderdoc/api/app/renderdoc_app.h)
* **Version**: 1.x branch
Loading
Loading