mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-28 18:40:29 +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.
17 lines
606 B
CMake
17 lines
606 B
CMake
if (ENABLE_SWIFT)
|
|
find_package(SwiftTesting REQUIRED)
|
|
|
|
add_executable(TestGCSwift
|
|
TestGCBindings.swift
|
|
TestHeap.cpp
|
|
TestInterop.cpp
|
|
)
|
|
|
|
# FIXME: Swift doesn't seem to like object libraries for @main
|
|
target_sources(TestGCSwift PRIVATE ../Resources/SwiftTestMain.swift)
|
|
|
|
set_target_properties(TestGCSwift PROPERTIES SUFFIX .swift-testing)
|
|
target_include_directories(TestGCSwift PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_link_libraries(TestGCSwift PRIVATE AK LibGC SwiftTesting::SwiftTesting)
|
|
add_test(NAME TestGCSwift COMMAND TestGCSwift)
|
|
endif()
|