Add SDK/CRT string routines and headers
This commit is contained in:
37
premake5.lua
37
premake5.lua
@@ -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" })
|
||||
--]]
|
||||
|
Reference in New Issue
Block a user