mirror of
https://github.com/NohamR/RMHook.git
synced 2026-11-25 23:06:39 +00:00
Gate legacy MQTT hook behind CMake option
This commit is contained in:
1 parent
e00ab1d5ed
commit
93b011807c
3 files changed
+23
No files matched your search
@@ -129,6 +129,13 @@ if(BUILD_MODE_DEV)
|
||||
message(STATUS "Build mode: dev (reverse engineering)")
|
||||
endif()
|
||||
|
||||
# MQTT URI patching hook (legacy, disabled by default)
|
||||
option(RMHOOK_ENABLE_MQTT "Enable MQTT URI patching hook (legacy, requires rmfakecloud mode)" OFF)
|
||||
if(RMHOOK_ENABLE_MQTT)
|
||||
target_compile_definitions(RMHook PRIVATE RMHOOK_ENABLE_MQTT=1)
|
||||
message(STATUS "MQTT hook: enabled (legacy)")
|
||||
endif()
|
||||
|
||||
target_link_libraries(reMarkable PRIVATE
|
||||
${LIBS}
|
||||
${QT_LIB_TARGETS}
|
||||
|
||||
Reference in new issue
Block a user