static linking update

-included libs are now static for windows
-c++ runtime is linked statically
-premake script updated
This commit is contained in:
Joseph Aquino 2025-06-22 14:26:39 -04:00
parent dd1ef04d7f
commit 573aa69d3b
1072 changed files with 75 additions and 55 deletions

2
.gitignore vendored
View File

@ -17,7 +17,7 @@
mono_crash.*
# Build results
[Dd]ebug/
#[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/

View File

@ -9,13 +9,27 @@ workspace "fake-mario"
"release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
sfmldir = "%{wks.location}/vendor/SFML-3.0.0"
imguidir = "%{wks.location}/vendor/imgui"
local outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
local vs_intdir = "$(SolutionDir)intermediate-files/" .. outputdir
local intdir = "%{wks.location}/intermediate-files/" .. outputdir
local vs_bindir = "$(SolutionDir)bin/" .. outputdir
local bindir = "%{wks.location}/bin/" .. outputdir
local linuxlibdir = "%{wks.location}/vendor/SFML/lib/linux"
local vs_libreldir = "$(SolutionDir)vendor/SFML/lib/MinSizeRel"
local libreldir = "%{wks.location}/vendor/SFML/lib/MinSizeRel"
local vs_libdebugdir = "$(SolutionDir)vendor/SFML/lib/Debug"
local libdebugdir = "%{wks.location}/vendor/SFML/lib/Debug"
local vs_sfmldir = "$(SolutionDir)vendor/SFML"
local sfmldir = "%{wks.location}/vendor/SFML"
local vs_imguidir = "$(SolutionDir)vendor/imgui"
local imguidir = "%{wks.location}/vendor/imgui"
local vs_includedir = "$(SolutionDir)include"
local includedir = "%{wks.location}/include"
project "fake-mario"
cppdialect "C++17"
language "C++"
defines "SFML_STATIC"
files
{
@ -29,56 +43,64 @@ project "fake-mario"
"vendor/imgui/imgui-SFML.cpp"
}
filter "action:vs*"
targetdir ("$(SolutionDir)bin/" .. outputdir)
objdir ("$(SolutionDir)intermediate-files/" .. outputdir)
libdirs "$(SolutionDir)vendor/SFML-3.0.0/lib"
--visual studio--
filter {"action:vs*", "system:windows"}
targetdir (vs_bindir )
objdir (vs_intdir)
staticruntime "on"
includedirs
{
"$(SolutionDir)include",
"$(SolutionDir)vendor/SFML-3.0.0/include",
"$(SolutionDir)vendor/imgui"
vs_includedir,
vs_sfmldir .. "/include",
vs_imguidir
}
filter {"action:vs*", "system:windows", "configurations:debug"}
libdirs {vs_libdebugdir}
filter {"action:vs*", "system:windows", "configurations:release"}
libdirs {vs_libreldir}
--not visual studio on windows--
filter {"not action:vs*", "system:windows"}
targetdir ("%{wks.location}/bin/" .. outputdir)
objdir ("%{wks.location}/intermediate-files/" .. outputdir)
libdirs "%{wks.location}/vendor/SFML-3.0.0/lib"
targetdir (bindir)
objdir (intdir)
includedirs
{
"%{wks.location}/include",
"%{wks.location}/vendor/imgui"
includedir,
imguidir
}
filter {"not action:vs*", "system:linux"}
targetdir ("%{wks.location}/bin/" .. outputdir)
objdir ("%{wks.location}/intermediate-files/" .. outputdir)
includedirs
{
"%{wks.location}/include",
"%{wks.location}/vendor/imgui"
}
filter {"not action:vs*", "system:windows", "configurations:debug"}
libdirs {libdebugdir}
filter {"not action:vs*", "system:windows", "configurations:release"}
libdirs {libreldir}
--platform specific settings--
filter{"system:windows"}
defines "SFML_STATIC"
systemversion "latest"
defines "PLATFORM_WINDOWS"
filter {"system:windows", "configurations:debug"}
kind "ConsoleApp"
defines{"_DEBUG", "_CONSOLE"}
runtime "Debug"
links
{
"sfml-graphics-s-d",
"sfml-window-s-d",
"opengl32",
"gdi32",
"freetype",
"freetyped",
"sfml-audio-s-d",
"flac",
"vorbisenc",
"vorbisfile",
"vorbis",
"ogg",
"flacd",
"vorbisencd",
"vorbisfiled",
"vorbisd",
"oggd",
"sfml-network-s-d",
"ws2_32",
"sfml-system-s-d",
@ -87,8 +109,11 @@ project "fake-mario"
filter {"system:windows", "configurations:release"}
kind "WindowedApp"
optimize "on"
optimize "Speed"
inlining "Auto"
entrypoint "mainCRTStartup"
defines{"NDEBUG"}
runtime "Release"
links
{
"sfml-graphics-s",
@ -109,6 +134,15 @@ project "fake-mario"
}
filter {"system:linux"}
targetdir (bindir)
objdir (intdir)
libdirs{linuxlibdir}
includedirs
{
includedir,
sfmldir .. "/include",
imguidir
}
systemversion "latest"
defines "PLATFORM_LINUX"
links
@ -119,12 +153,18 @@ project "fake-mario"
"sfml-network",
"sfml-system",
"OpenGL"
}
filter {"system:linux" , "configurations:debug"}
kind "ConsoleApp"
symbols "on"
runtime "Debug"
filter {"system:linux" , "configurations:release"}
kind "WindowedApp"
optimize "on"
optimize "Speed"
inlining "Auto"
entrypoint "mainCRTStartup"
symbols "off"
runtime "Release"

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-audio-d.so.3.0

View File

@ -1 +0,0 @@
libsfml-audio-d.so.3.0.0

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-audio.so.3.0

View File

@ -1 +0,0 @@
libsfml-audio.so.3.0.0

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-graphics-d.so.3.0

View File

@ -1 +0,0 @@
libsfml-graphics-d.so.3.0.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-graphics.so.3.0

View File

@ -1 +0,0 @@
libsfml-graphics.so.3.0.0

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-network-d.so.3.0

View File

@ -1 +0,0 @@
libsfml-network-d.so.3.0.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-network.so.3.0

View File

@ -1 +0,0 @@
libsfml-network.so.3.0.0

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-system-d.so.3.0

View File

@ -1 +0,0 @@
libsfml-system-d.so.3.0.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-system.so.3.0

View File

@ -1 +0,0 @@
libsfml-system.so.3.0.0

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-window-d.so.3.0

View File

@ -1 +0,0 @@
libsfml-window-d.so.3.0.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
libsfml-window.so.3.0

View File

@ -1 +0,0 @@
libsfml-window.so.3.0.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More