Last active
April 5, 2023 12:43
-
-
Save gale93/b37fe2b3194a150dca09d122f9ef6c3d to your computer and use it in GitHub Desktop.
SFML's premake5 build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workspace "sfml_project" | |
configurations { "Debug", "Release" } | |
location "build" | |
project "sfml_project" | |
kind "ConsoleApp" | |
language "C++" | |
targetdir "bin/%{cfg.buildcfg}" | |
files { "src/**.*" } | |
filter "configurations:*" | |
defines { "SFML_STATIC" } | |
includedirs { "dependencies/SFML/include" } | |
libdirs { "dependencies/SFML/lib" } | |
links | |
{ | |
"opengl32", | |
"freetype", | |
"winmm", | |
"gdi32", | |
"flac", | |
"vorbisenc", | |
"vorbisfile", | |
"vorbis", | |
"ogg", | |
"ws2_32" | |
} | |
filter "configurations:Debug" | |
defines { "DEBUG" } | |
symbols "On" | |
links | |
{ | |
"sfml-graphics-s-d", | |
"sfml-window-s-d", | |
"sfml-system-s-d", | |
"sfml-audio-s-d", | |
"sfml-network-s-d" | |
} | |
filter "configurations:Release" | |
defines { "NDEBUG" } | |
optimize "On" | |
links | |
{ | |
"sfml-graphics-s", | |
"sfml-window-s", | |
"sfml-system-s", | |
"sfml-audio-s", | |
"sfml-network-s" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment