project"sfml"

	links{"freetype", "ogg", "flac", "vorbis"}
	cppdialect"c++17"
	kind "staticLib"
	targetdir"lib"
	staticruntime "off"
	
	defines
	{
		"SFML_STATIC",
		"MA_NO_MP3",
		"MA_NO_FLAC",
		"MA_NO_ENCODING",
		"MA_NO_RESOURCE_MANAGER",
		"MA_NO_GENERATION",
		"MA_USE_STDINT",
		"STBI_FAILURE_USERMSG",
		"SFML_IS_BIG_ENDIAN=0",
		"FT2_BUILD_LIBRARY",
		"FLAC__NO_DLL",
		"OV_EXCLUDE_STATIC_CALLBACKS"
	}
	
	includedirs
	{
		"include",
		"src",
		"extlibs/headers/glad/include",
		"extlibs/headers/mingw",
		"extlibs/headers/miniaudio",
		"extlibs/headers/minimp3",
		"extlibs/headers/stb_image",
		"extlibs/headers/vulkan",
		"../freetype/include",
		"../ogg/include",
		"../flac/include",
		"../vorbis/include"
	}

	files
	{
		"include/SFML/**.hpp",
		"include/SFML/**.inl",
		"src/SFML/**.hpp",
		"src/SFML/**.cpp"
	}

	filter"system:windows"
		removefiles
		{
			"src/SFML/System/Unix/**",
			"src/SFML/Window/Unix/**"
		}


	filter "configurations:Debug"
		runtime "Debug"
		symbols "on"

	filter "configurations:Release"
		runtime "Release"
		optimize "Speed"