diff --git a/.gitignore b/.gitignore index b4fd161..bece240 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +bin/** +build/** + ### C++ # Object files *.o @@ -38,7 +41,8 @@ ._* # Custom folder icons -Icon +Icon + # Volume root files .DocumentRevisions-V100 diff --git a/premake/bin/linux/premake5 b/premake/bin/linux/premake5 new file mode 100644 index 0000000..b5354b5 Binary files /dev/null and b/premake/bin/linux/premake5 differ diff --git a/premake/bin/macos/premake5 b/premake/bin/macos/premake5 new file mode 100644 index 0000000..d1e2055 Binary files /dev/null and b/premake/bin/macos/premake5 differ diff --git a/premake/bin/windows/premake5.exe b/premake/bin/windows/premake5.exe new file mode 100644 index 0000000..32f354f Binary files /dev/null and b/premake/bin/windows/premake5.exe differ diff --git a/premake5.lua b/premake5.lua new file mode 100644 index 0000000..3f82e02 --- /dev/null +++ b/premake5.lua @@ -0,0 +1,47 @@ +workspace "tenvex" + architecture "x64" + configurations { "debug", "release" } + location "build" + +outputdir = "%{cfg.system}/x64/%{cfg.buildcfg}" + +project "tenvex" + location "build" + kind "StaticLib" + language "C++" + cppdialect "C++20" + staticruntime "on" + + targetdir ("bin/" .. outputdir .. "/output") + objdir ("bin/" .. outputdir .. "/intermediate") + + files { + "src/tenvex/**.h", + "src/tenvex/**.hpp", + "src/tenvex/**.cpp", + } + + includedirs { + "src/tenvex", + } + + filter "configurations:debug" + runtime "Debug" + symbols "on" + optimize "off" + defines { "TENVEX_DEBUG" } + + filter "configurations:release" + runtime "Release" + symbols "on" + optimize "Speed" + defines { "TENVEX_RELEASE" } + + filter "system:windows" + systemversion "latest" + + filter "system:linux" + pic "on" + + filter "system:macosx" + pic "on" diff --git a/scripts/config-vs2022.bat b/scripts/config-vs2022.bat new file mode 100644 index 0000000..629d505 --- /dev/null +++ b/scripts/config-vs2022.bat @@ -0,0 +1,2 @@ +@echo off +call "%~dp0..\premake\bin\windows\premake5.exe" --file="%~dp0..\premake5.lua" vs2022 \ No newline at end of file