project "Editor"
	language "C++"
	cppdialect "C++17"
	systemversion "latest"
	targetname "Editor"
	links {"Engine-Core"}

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

	--visual studio--
	filter "action:vs*"
		targetdir (vs_bindir)
		objdir (vs_intdir)
		includedirs 
		{
			vs_coreinclude_dir,
			"src",
			vs_include_dir, 
			vs_sfmldir .. "/include", 
			vs_imguidir
		}

	--not visual studio on windows--
  filter {"not action:vs*", "system:windows"}
    targetdir (bindir)
    objdir (intdir)
    includedirs 
    {
			coreinclude_dir,
			"src",
      include_dir, 
			sfmldir .. "/include", 
      imguidir 
    }
	
	--windows specific settings--
	filter{"system:windows"}
		defines {"PLATFORM_WINDOWS", "SFML_STATIC"}
		staticruntime "on"

	filter {"system:windows", "configurations:debug"}
		defines{"_DEBUG", "_CONSOLE"}
		
	filter {"system:windows", "configurations:release"}
		defines{"NDEBUG"}

  --linux specific settings--
	filter {"system:linux"}
		targetdir (bindir)
		objdir (intdir)
		defines {"PLATFORM_LINUX"}
		includedirs 
		{
			coreinclude_dir,
			"src",
			include_dir, 
			imguidir
		}		
		
		links 
		{
			"sfml-graphics",
			"sfml-window",
			"sfml-audio",
			"sfml-system",
			"OpenGL",
		}
    
  --config settings--
  filter "configurations:debug"
    defines {"LOG_ENABLE", "GAME_DEBUG"}
		symbols "on"
		runtime "Debug"
		kind "ConsoleApp"

  filter "configurations:release"
    defines {"GAME_RELEASE"}
		optimize "Speed"
		inlining "Auto"
		symbols "off"
		runtime "Release"
		kind "WindowedApp"
	