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.
12 lines
422 B
CMake
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()
|