mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-02 19:09:16 +00:00
refactor(userspace): build using cmake
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
15
Userspace/libc/libs/libstdc++/CMakeLists.txt
Normal file
15
Userspace/libc/libs/libstdc++/CMakeLists.txt
Normal 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)
|
18
Userspace/libc/libs/libstdc++/libstdc++.cpp
Normal file
18
Userspace/libc/libs/libstdc++/libstdc++.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
This file is part of Fennix Userspace.
|
||||
|
||||
Fennix Userspace is free software: you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
Fennix Userspace is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Fennix Userspace. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* dummy file */
|
Reference in New Issue
Block a user