Add MacOS Platform

Use MacOS Standard Fullscreen hotkey
This commit is contained in:
Hibyehello
2023-02-01 18:00:12 -06:00
parent 6743ca8e09
commit 8324a85339
4 changed files with 451 additions and 0 deletions

View File

@ -13,6 +13,11 @@ if(WIN32)
target_sources(dolphin-nogui PRIVATE PlatformWin32.cpp)
endif()
if(APPLE)
target_sources(dolphin-nogui PRIVATE PlatformMacos.mm)
target_compile_options(dolphin-nogui PRIVATE -fobjc-arc)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
target_sources(dolphin-nogui PRIVATE PlatformFBDev.cpp)
endif()
@ -26,6 +31,15 @@ PRIVATE
cpp-optparse
)
if(APPLE)
target_link_libraries(dolphin-nogui
PRIVATE
${APPKIT_LIBRARY}
${COREFOUNDATION_LIBRARY}
${IOK_LIBRARY}
)
endif()
if(MSVC)
# Add precompiled header
target_link_libraries(dolphin-nogui PRIVATE use_pch)