We had both {lagom,ladybird}_test and {lagom,ladybird}_lib, now both
are just one helper. Also rename all other lagom_* helpers to be
ladybird_*.
25 lines
701 B
CMake
25 lines
701 B
CMake
set(SOURCES
|
|
BlockAllocator.cpp
|
|
Cell.cpp
|
|
CellAllocator.cpp
|
|
ConservativeVector.cpp
|
|
Root.cpp
|
|
RootHashMap.cpp
|
|
RootVector.cpp
|
|
Heap.cpp
|
|
HeapBlock.cpp
|
|
WeakBlock.cpp
|
|
WeakContainer.cpp
|
|
)
|
|
|
|
ladybird_lib(LibGC gc EXPLICIT_SYMBOL_EXPORT)
|
|
target_link_libraries(LibGC PRIVATE LibCore)
|
|
|
|
if(cpptrace_FOUND AND LADYBIRD_ENABLE_CPPTRACE)
|
|
target_link_libraries(LibGC PRIVATE cpptrace::cpptrace)
|
|
target_compile_definitions(LibGC PRIVATE LIBGC_HAS_CPPTRACE=1)
|
|
endif()
|
|
|
|
# TODO: Use ladybird_generate_export_header and annotate entire LibGC with export macros
|
|
include(GenerateExportHeader)
|
|
generate_export_header(LibGC EXPORT_MACRO_NAME GC_API EXPORT_FILE_NAME "Export.h")
|