ladybird/Libraries/LibRegex/CMakeLists.txt
Shannon Booth 45dd8d093f LibRegex: Hide the Unicode allocator override behind a feature
In a similar fashion to 46912fce8d.

In this case, a future commit will make LibURL depend on
LibRegex's Rust module, so we need to apply the same change here
too.
2026-05-28 09:27:41 +02:00

12 lines
422 B
CMake

set(SOURCES
ECMAScriptRegex.cpp
RustRegex.cpp
)
ladybird_lib(LibRegex regex EXPLICIT_SYMBOL_EXPORT)
import_rust_crate(MANIFEST_PATH Rust/Cargo.toml CRATE_NAME libregex_rust FEATURES allocator FFI_HEADER RustFFI.h)
target_link_libraries(LibRegex PRIVATE libregex_rust LibUnicode)
if ((LINUX OR BSD) AND NOT BUILD_SHARED_LIBS)
target_link_options(LibRegex INTERFACE LINKER:--allow-multiple-definition)
endif()