Skip to content

Commit 5f076b8

Browse files
committed
Support WakeLock.h for doNotGoToSleep Refactor
For InfiniTime PR InfiniTimeOrg/InfiniTime#2107 a new systemtask file is introduced `WakeLock.h` and `WakeLock.cpp`. If available add those files to the build target to support the current `main` and the new `WakeLock` using redesign.
1 parent 7ade442 commit 5f076b8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ else()
237237
)
238238
endif()
239239

240+
if(EXISTS ${InfiniTime_DIR}/src/systemtask/WakeLock.h)
241+
target_sources(infinisim PUBLIC
242+
${InfiniTime_DIR}/src/systemtask/WakeLock.h
243+
${InfiniTime_DIR}/src/systemtask/WakeLock.cpp
244+
)
245+
endif()
246+
240247
# littlefs
241248
add_library(littlefs STATIC
242249
${InfiniTime_DIR}/src/libs/littlefs/lfs_util.h

0 commit comments

Comments
 (0)