Merge branch 'feature/premake-setup'

This commit is contained in:
Artem Zyktin 2026-05-27 16:46:44 +08:00
commit e6c191ec2e
6 changed files with 54 additions and 1 deletions

6
.gitignore vendored
View File

@ -1,3 +1,6 @@
bin/**
build/**
### C++ ### C++
# Object files # Object files
*.o *.o
@ -38,7 +41,8 @@
._* ._*
# Custom folder icons # Custom folder icons
Icon Icon
# Volume root files # Volume root files
.DocumentRevisions-V100 .DocumentRevisions-V100

BIN
premake/bin/linux/premake5 Normal file

Binary file not shown.

BIN
premake/bin/macos/premake5 Normal file

Binary file not shown.

Binary file not shown.

47
premake5.lua Normal file
View File

@ -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"

View File

@ -0,0 +1,2 @@
@echo off
call "%~dp0..\premake\bin\windows\premake5.exe" --file="%~dp0..\premake5.lua" vs2022