Common: Split some routines into CocoaTools

This commit is contained in:
Stenzek
2023-09-23 22:20:50 +10:00
parent c8dc8849ea
commit a115b40ef7
8 changed files with 200 additions and 77 deletions

View File

@ -86,6 +86,17 @@ if(MSVC)
endif()
endif()
if(APPLE)
set(MAC_SOURCES
cocoa_tools.h
cocoa_tools.mm
)
target_sources(common PRIVATE ${MAC_SOURCES})
set_source_files_properties(${MAC_SOURCES} PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE)
find_library(COCOA_LIBRARY Cocoa REQUIRED)
target_link_libraries(common PRIVATE ${COCOA_LIBRARY})
endif()
if(NOT WIN32 AND NOT ANDROID)
target_sources(common PRIVATE
http_downloader_curl.cpp