mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
* Correct JS requestConfig call * Update requestWriteConfig to new API format * Add hyperion-light and bare-minimum preset scenarios * Refactor Python * Windows add bcrypt until mbedtls is fixed (https://github.com/Mbed-TLS/mbedtls/pull/9554) * Corrections * Use ScreenCaptureKit under macOS 15 and above * ReSigning macOS package * Python 3.11.10 test * Revert "Python 3.11.10 test" This reverts commit ee921e4f1284fe3d984d9422b24a1c56c6916c21. * Handle defined exits from python scripts * Update change.log * CodeQL findings --------- Co-authored-by: Paulchen-Panther <16664240+Paulchen-Panther@users.noreply.github.com>
29 lines
885 B
CMake
29 lines
885 B
CMake
add_library(osx-grabber
|
|
${CMAKE_SOURCE_DIR}/include/grabber/osx/OsxFrameGrabber.h
|
|
${CMAKE_SOURCE_DIR}/include/grabber/osx/OsxWrapper.h
|
|
${CMAKE_SOURCE_DIR}/libsrc/grabber/osx/OsxFrameGrabber.mm
|
|
${CMAKE_SOURCE_DIR}/libsrc/grabber/osx/OsxWrapper.cpp
|
|
)
|
|
|
|
target_link_libraries(osx-grabber
|
|
hyperion
|
|
"$<LINK_LIBRARY:FRAMEWORK,CoreGraphics.framework>"
|
|
)
|
|
|
|
file(WRITE ${CMAKE_BINARY_DIR}/tmp/SDK15Available.c
|
|
"#include <AvailabilityMacros.h>
|
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 150000
|
|
#error __MAC_OS_X_VERSION_MAX_ALLOWED < 150000
|
|
#endif
|
|
int main(int argc, char** argv)
|
|
{
|
|
return 0;
|
|
}"
|
|
)
|
|
|
|
try_compile(SDK_15_AVAILABLE ${CMAKE_BINARY_DIR} SOURCES ${CMAKE_BINARY_DIR}/tmp/SDK15Available.c)
|
|
if(SDK_15_AVAILABLE)
|
|
target_compile_definitions(osx-grabber PRIVATE SDK_15_AVAILABLE)
|
|
target_link_libraries(osx-grabber "$<LINK_LIBRARY:WEAK_FRAMEWORK,ScreenCaptureKit.framework>")
|
|
endif()
|