From 5b41ad47e381a8807e921977517c0108dfbf6367 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 3 Feb 2023 11:38:24 +0800 Subject: Move the debugger docs into the debugger repo and copy them to the API folder during build --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 05d2a0c5..fecfb6f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,3 +92,13 @@ endif() if(BN_API_BUILD_EXAMPLES) add_subdirectory(examples) endif() + +if (DEBUGGER) + add_custom_command(TARGET binaryninjaapi PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E echo "Copying Debugger Docs" + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../public/debugger/docs/guide + ${CMAKE_CURRENT_SOURCE_DIR}/docs/guide + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../public/debugger/docs/img + ${CMAKE_CURRENT_SOURCE_DIR}/docs/img + ) +endif() -- cgit v1.3.1