From e71056f26b7fde44a68bf921ca863ae8bf1347f1 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 11 Nov 2024 22:25:01 +0000 Subject: [PATCH] meta: add stub compiler, assembler, and runtime libraries --- CMakeLists.txt | 3 +++ libasm/CMakeLists.txt | 8 ++++++++ libasm/include/ivy/asm.h | 0 libasm/misc.c | 0 libc/CMakeLists.txt | 8 ++++++++ libc/include/ivy/compile.h | 0 libc/misc.c | 0 librt/CMakeLists.txt | 8 ++++++++ librt/include/ivy/rt.h | 0 librt/misc.c | 0 10 files changed, 27 insertions(+) create mode 100644 libasm/CMakeLists.txt create mode 100644 libasm/include/ivy/asm.h create mode 100644 libasm/misc.c create mode 100644 libc/CMakeLists.txt create mode 100644 libc/include/ivy/compile.h create mode 100644 libc/misc.c create mode 100644 librt/CMakeLists.txt create mode 100644 librt/include/ivy/rt.h create mode 100644 librt/misc.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 089fd1b..7d5edbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,3 +7,6 @@ set(Bluelib_STATIC TRUE) find_package(Bluelib REQUIRED) add_subdirectory(ivy) +add_subdirectory(libc) +add_subdirectory(libasm) +add_subdirectory(librt) diff --git a/libasm/CMakeLists.txt b/libasm/CMakeLists.txt new file mode 100644 index 0000000..93ac3b8 --- /dev/null +++ b/libasm/CMakeLists.txt @@ -0,0 +1,8 @@ +file(GLOB_RECURSE libasm_sources *.c *.h include/ivy/*.h) + +add_library(ivy-asm SHARED ${libasm_sources}) +target_link_libraries( + ivy-asm + Bluelib::Core + Bluelib::Object + Bluelib::Cmd) diff --git a/libasm/include/ivy/asm.h b/libasm/include/ivy/asm.h new file mode 100644 index 0000000..e69de29 diff --git a/libasm/misc.c b/libasm/misc.c new file mode 100644 index 0000000..e69de29 diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt new file mode 100644 index 0000000..6d87f14 --- /dev/null +++ b/libc/CMakeLists.txt @@ -0,0 +1,8 @@ +file(GLOB_RECURSE libc_sources *.c *.h include/ivy/*.h) + +add_library(ivy-c SHARED ${libc_sources}) +target_link_libraries( + ivy-c + Bluelib::Core + Bluelib::Object + Bluelib::Cmd) diff --git a/libc/include/ivy/compile.h b/libc/include/ivy/compile.h new file mode 100644 index 0000000..e69de29 diff --git a/libc/misc.c b/libc/misc.c new file mode 100644 index 0000000..e69de29 diff --git a/librt/CMakeLists.txt b/librt/CMakeLists.txt new file mode 100644 index 0000000..4cabd7b --- /dev/null +++ b/librt/CMakeLists.txt @@ -0,0 +1,8 @@ +file(GLOB_RECURSE librt_sources *.c *.h include/ivy/*.h) + +add_library(ivy-rt SHARED ${librt_sources}) +target_link_libraries( + ivy-rt + Bluelib::Core + Bluelib::Object + Bluelib::Cmd) diff --git a/librt/include/ivy/rt.h b/librt/include/ivy/rt.h new file mode 100644 index 0000000..e69de29 diff --git a/librt/misc.c b/librt/misc.c new file mode 100644 index 0000000..e69de29