mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
fca6fd0b85
This includes a protocol for creating LibGC Heap allocated Swift objects. Pay no attention to the Unmanaged shenanigans, they are all behind the curtain.
24 lines
509 B
CMake
24 lines
509 B
CMake
set(SOURCES
|
|
BlockAllocator.cpp
|
|
Cell.cpp
|
|
CellAllocator.cpp
|
|
ConservativeVector.cpp
|
|
ForeignCell.cpp
|
|
Root.cpp
|
|
Heap.cpp
|
|
HeapBlock.cpp
|
|
MarkedVector.cpp
|
|
WeakContainer.cpp
|
|
)
|
|
|
|
serenity_lib(LibGC gc)
|
|
target_link_libraries(LibGC PRIVATE LibCore)
|
|
|
|
if (ENABLE_SWIFT)
|
|
generate_clang_module_map(LibGC)
|
|
target_sources(LibGC PRIVATE
|
|
Heap+Swift.swift
|
|
)
|
|
target_link_libraries(LibGC PRIVATE AK)
|
|
add_swift_target_properties(LibGC LAGOM_LIBRARIES AK)
|
|
endif()
|