1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 09:37:44 +00:00

Ladybird: Add an AppKit NSString category to hold common utilities

This currently holds a helper to create a new string which collapses all
consecutive whitespace to a single ASCII space.
This commit is contained in:
Timothy Flynn 2023-09-12 20:31:16 -04:00 committed by Andrew Kaster
parent 1f07a18f4e
commit 507dea5fdd
3 changed files with 72 additions and 1 deletions

View file

@ -142,10 +142,11 @@ elseif (APPLE)
AppKit/UI/Tab.mm
AppKit/UI/TabController.mm
AppKit/Utilities/Conversions.mm
AppKit/Utilities/NSString+Ladybird.mm
AppKit/Utilities/URL.mm
)
target_include_directories(ladybird PRIVATE AppKit)
target_link_libraries(ladybird PRIVATE ${COCOA_LIBRARY})
target_link_libraries(ladybird PRIVATE ${COCOA_LIBRARY} LibUnicode)
target_compile_options(ladybird PRIVATE
-fobjc-arc
-Wno-deprecated-anon-enum-enum-conversion # Required for CGImageCreate