build: optionally static link boost (#2628)

This commit is contained in:
ReenigneArcher 2024-06-14 17:37:46 -04:00 committed by GitHub
commit ebc41acf98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 194 additions and 134 deletions

View file

@ -13,7 +13,9 @@ foreach(dir ${MACOS_LINK_DIRECTORIES})
endif()
endforeach()
ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
if(NOT BOOST_USE_STATIC AND NOT FETCH_CONTENT_BOOST_USED)
ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
endif()
list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
${APP_KIT_LIBRARY}
@ -24,9 +26,6 @@ list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
${FOUNDATION_LIBRARY}
${VIDEO_TOOLBOX_LIBRARY})
set(PLATFORM_INCLUDE_DIRS
${Boost_INCLUDE_DIR})
set(APPLE_PLIST_FILE "${SUNSHINE_SOURCE_ASSETS_DIR}/macos/assets/Info.plist")
# todo - tray is not working on macos