refactor(userspace): build using cmake

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-15 23:05:17 +00:00
parent 40f46312f8
commit 201ace7eec
73 changed files with 2819 additions and 2255 deletions

View File

@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.10)
project(FennixStandardC++Library)
set(SOURCES libstdc++.cpp)
add_library(stdc++ STATIC ${SOURCES})
add_library(stdc++_shared SHARED ${SOURCES})
target_link_options(stdc++_shared PRIVATE -nostdlib)
set_target_properties(stdc++_shared PROPERTIES OUTPUT_NAME "stdc++")
install(TARGETS stdc++ stdc++_shared
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include)