mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
A URL pattern consists of components such as the 'port', 'password' 'hostname', etc. A component is compiled from the input to the URLPattern constructor and is what is used for matching against URLs to produce a match result. This is also where the regex dependency is introduced into LibURL to support the URLPattern implementation.
15 lines
337 B
CMake
15 lines
337 B
CMake
include(public_suffix)
|
|
|
|
set(SOURCES
|
|
Host.cpp
|
|
Origin.cpp
|
|
Parser.cpp
|
|
Site.cpp
|
|
URL.cpp
|
|
${PUBLIC_SUFFIX_SOURCES}
|
|
)
|
|
|
|
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}>)
|