2024-11-15 04:01:23 +13:00
|
|
|
set(SOURCES
|
|
|
|
|
BlockAllocator.cpp
|
|
|
|
|
Cell.cpp
|
|
|
|
|
CellAllocator.cpp
|
|
|
|
|
ConservativeVector.cpp
|
2024-11-16 14:56:27 -07:00
|
|
|
ForeignCell.cpp
|
2024-11-15 04:01:23 +13:00
|
|
|
Root.cpp
|
2025-05-03 11:59:17 +02:00
|
|
|
RootHashMap.cpp
|
2024-12-26 14:32:52 +01:00
|
|
|
RootVector.cpp
|
2024-11-15 04:01:23 +13:00
|
|
|
Heap.cpp
|
|
|
|
|
HeapBlock.cpp
|
2025-10-16 11:10:01 +02:00
|
|
|
WeakBlock.cpp
|
2024-11-15 04:01:23 +13:00
|
|
|
WeakContainer.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2025-06-30 08:11:44 -07:00
|
|
|
ladybird_lib(LibGC gc EXPLICIT_SYMBOL_EXPORT)
|
2024-11-15 04:01:23 +13:00
|
|
|
target_link_libraries(LibGC PRIVATE LibCore)
|
2024-11-16 14:58:28 -07:00
|
|
|
|
|
|
|
|
if (ENABLE_SWIFT)
|
|
|
|
|
generate_clang_module_map(LibGC)
|
|
|
|
|
target_sources(LibGC PRIVATE
|
2025-03-22 18:58:04 -06:00
|
|
|
Heap+Swift.swift
|
2024-11-16 14:58:28 -07:00
|
|
|
)
|
|
|
|
|
target_link_libraries(LibGC PRIVATE AK)
|
2025-04-04 07:04:10 -06:00
|
|
|
add_swift_target_properties(LibGC LAGOM_LIBRARIES AK)
|
2024-11-16 14:58:28 -07:00
|
|
|
endif()
|
2025-05-29 00:04:33 -06:00
|
|
|
|
|
|
|
|
# TODO: Use lagom_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")
|