Files
ladybird/Libraries/LibURL/CMakeLists.txt
Shannon Booth f3662c6f88 LibURL/Pattern: Add a representation of a URL Pattern
This is the core object behind a URL pattern which when constructed
can be used for matching the pattern against URLs.

However, the implementation here is missing key functions such as
the constructor and the 'test'/'exec' functions as that relies on
a significant amount of supporting URLPattern infrastructure such
as two different parsers and a tokenizer.

However, this is enough for us to implement some more of the IDL
wrapper layer of this specification.
2025-02-17 19:10:39 -05:00

16 lines
361 B
CMake

include(public_suffix)
set(SOURCES
Host.cpp
Origin.cpp
Parser.cpp
Site.cpp
URL.cpp
${PUBLIC_SUFFIX_SOURCES}
Pattern/Pattern.cpp
)
serenity_lib(LibURL url)
target_link_libraries(LibURL PRIVATE LibUnicode LibTextCodec LibRegex)
target_compile_definitions(LibURL PRIVATE ENABLE_PUBLIC_SUFFIX=$<BOOL:${ENABLE_PUBLIC_SUFFIX_DOWNLOAD}>)