mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
We are going to need a unix library. Going to take this one step at a time without AI/ML so I fully understand all the pieces of the puzzle, and to ensure we don't lose any functionality before we're ready. This only ensures that we are building the Linux facing .so files for arm64ec and wow64, but they are empty today. Next PR will be initializing it on the PE side.
15 lines
514 B
CMake
15 lines
514 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(FEXUnixLib CXX)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
function(CreateLib TargetName LibName)
|
|
add_library(${TargetName} SHARED FEXUnixLib.cpp)
|
|
set_target_properties(${TargetName} PROPERTIES OUTPUT_NAME ${LibName} PREFIX "lib" SUFFIX ".so")
|
|
target_link_libraries(${TargetName} PRIVATE rt)
|
|
install(TARGETS ${TargetName} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Runtime)
|
|
endfunction()
|
|
|
|
CreateLib(wow64fex_unixlib wow64fex)
|
|
CreateLib(arm64ecfex_unixlib arm64ecfex)
|