-
-
Save TheCoderRaman/263de4872f9675470617b0a8cb535022 to your computer and use it in GitHub Desktop.
SFML's premake5 build script
This file contains 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