2024-06-08 16:30:39 -04:00
|
|
|
project(runtime)
|
|
|
|
|
|
|
|
## Extra Runtime
|
|
|
|
|
|
|
|
# QEMU
|
2024-11-10 05:26:41 -05:00
|
|
|
set(QEMU_VERSION "9.1.1")
|
2024-11-10 05:42:56 -05:00
|
|
|
set(RUNTIME_QEMU_ARCHIVE "${CMAKE_CURRENT_SOURCE_DIR}/../../archives/qemu-${QEMU_VERSION}.tar.xz" CACHE FILEPATH "" FORCE)
|
2024-06-08 16:30:39 -04:00
|
|
|
if(NOT BUILD_NATIVE_COMPONENTS)
|
2024-11-10 05:26:41 -05:00
|
|
|
set(TRAMPOLINE_HEADERS_ONLY TRUE CACHE BOOL "" FORCE)
|
2024-06-08 16:30:39 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Build
|
2024-11-19 22:48:50 -05:00
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|
|
# RPath
|
|
|
|
if(TARGET runtime)
|
|
|
|
set_target_properties(runtime PROPERTIES INSTALL_RPATH "$ORIGIN/../lib/native")
|
|
|
|
target_link_options(runtime PRIVATE "LINKER:--disable-new-dtags")
|
|
|
|
endif()
|