Add SDK/CRT string routines and headers

This commit is contained in:
2024-08-08 08:04:59 -04:00
parent 70489d6d39
commit 8ff7a75afc
8 changed files with 357 additions and 10 deletions

View File

@@ -3,27 +3,44 @@
--- Provided under the BSD 3-Clause license.
---
workspace("LibreXP")
workspace("Alcyone")
configurations({ "DEBUG", "RELEASE" })
language("C")
toolset("clang")
configurations({ "Debug", "Release" })
system("windows")
warnings("Extra")
filter("configurations:Debug")
defines({ "DEBUG" })
filter("configurations:DEBUG")
symbols("On")
defines({ "_DEBUG" })
filter("configurations:Release")
defines({ "NDEBUG" })
optimize("On")
filter("configurations:RELEASE")
optimize("Speed")
filter("toolset:clang")
buildoptions({ "-target x86_64-windows-unknown", "-ffreestanding" })
linkoptions({ "-target x86_64-windows-unknown", "-fuse-ld=lld-link", "-Wl,-nodefaultlib" })
project("CRT")
kind("StaticLib")
location("SDK/CRT")
includedirs({ "SDK/CRT/INC" })
objdir("BUILD/SDK/CRT")
targetdir("BUILD/SDK")
targetname("crt")
files({ "SDK/CRT/INC/**.h", "SDK/CRT/**.c" })
--[[
project("BOOT")
kind("ConsoleApp")
includedirs({ "BOOT/ENVIRON/INC" })
includedirs({ "BOOT/ENVIRON/INC", "SDK/INC/CRT" })
objdir("BUILD/BOOT")
targetdir("BUILD/BOOT")
files({ "BOOT/ENVIRON/INC/**.h", "BOOT/ENVIRON/**.c" })
filter("toolset:clang")
buildoptions({ "-target x86_64-windows-unknown", "-Wall", "-Wextra", "-O2", "-ffreestanding", "-fshort-wchar", "-fno-strict-aliasing", "-fno-stack-protector", "-fno-stack-check", "-mno-red-zone" })
linkoptions({ "-target x86_64-windows-unknown", "-fuse-ld=lld-link", "-Wl,-subsystem:efi_application", "-Wl,-entry:EfiEntry", "-Wl,-nodefaultlib" })
buildoptions({ "-fshort-wchar", "-fno-strict-aliasing", "-fno-stack-protector", "-fno-stack-check", "-mno-red-zone" })
linkoptions({ "-Wl,-subsystem:efi_application", "-Wl,-entry:EfiEntry", "crt.lib" })
--]]