mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
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.
16 lines
361 B
CMake
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}>)
|