mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
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:
parent
4066ce2c7e
commit
68ce5f8290
Notes:
github-actions[bot]
2024-07-21 21:56:43 +00:00
Author: https://github.com/ADKaster
Commit: 68ce5f8290
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/726
14 changed files with 313 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue