19 lines
510 B
CMake
19 lines
510 B
CMake
project(runtime)
|
|
|
|
## Extra Runtime
|
|
|
|
# QEMU
|
|
set(QEMU_VERSION "9.1.1")
|
|
set(RUNTIME_QEMU_ARCHIVE "${CMAKE_CURRENT_SOURCE_DIR}/../../archives/qemu-${QEMU_VERSION}.tar.xz" CACHE FILEPATH "" FORCE)
|
|
if(NOT BUILD_NATIVE_COMPONENTS)
|
|
set(TRAMPOLINE_HEADERS_ONLY TRUE CACHE BOOL "" FORCE)
|
|
endif()
|
|
|
|
# Build
|
|
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() |