Ladybird/AppKit: Port TaskManager window to Swift

This is just a direct port of the Objective-C++ code to Swift 6.
A future patch should probably update it to actually use SwiftUI.
This commit is contained in:
Andrew Kaster 2024-07-16 05:33:39 -06:00 committed by Andrew Kaster
commit 68ce5f8290
Notes: github-actions[bot] 2024-07-21 21:56:43 +00:00
14 changed files with 313 additions and 15 deletions

View file

@ -21,6 +21,22 @@ macro(add_cxx_link_options)
add_link_options($<$<LINK_LANGUAGE:C,CXX>:${args}>)
endmacro()
macro(add_swift_compile_options)
set(args "")
foreach(arg ${ARGN})
string(APPEND args ${arg}$<SEMICOLON>)
endforeach()
add_compile_options($<$<COMPILE_LANGUAGE:Swift>:${args}>)
endmacro()
macro(add_swift_link_options)
set(args "")
foreach(arg ${ARGN})
string(APPEND args ${arg}$<SEMICOLON>)
endforeach()
add_link_options($<$<LINK_LANGUAGE:Swift>:${args}>)
endmacro()
if (MSVC)
add_cxx_compile_options(/W4)
# do not warn about unused function