<commit_before>EditorRuntime = {}
EditorRuntime.defines = {}

function SetupWxWidgets()
	wxWidgets = {}
	
	wxWidgets.includedirs =
	{ 
		path.join(depsdir,"wxWidgets/include"),
		path.join(depsdir,"wxWidgets/include/msvc")
	}

	wxWidgets.libdirs =
	{ 
		path.join(depsdir,"wxWidgets/lib/vc_dll")
	}	
	
	wxWidgets.links = { }

	wxWidgets.defines = { '_LIB', 'WXUSINGDLL', 'WXMONOLITHIC' }

	defines { wxWidgets.defines }

	local c = configuration "windows"
		defines { "__WXMSW__" }
		
	configuration { "windows", "Debug" }
		links { "wxmsw29ud","wxmsw29ud_gl" }
		
	configuration { "windows", "Release" }
		links { "wxmsw29u","wxmsw29u_gl" }

	configuration (c)
end

project "EditorRuntime"

	debugdir(bindir)
	
	SetupNativeProjects()

	dependson { EngineManaged.name, EditorClient.name, GUI.name }
	
	defines
	{
		Core.defines,
		Resources.defines,
		Graphics.defines,
		Engine.defines,
		Pipeline.defines
	}

	editor_flags = common_flags
	table.remove(editor_flags, #editor_flags)
	
	flags { editor_flags }

	pchheader "Editor/API.h"
	pchsource "Editor.cpp"
	
	configuration "Debug"
		kind "ConsoleApp"
	
	configuration "Release"
		kind "WindowedApp"
		flags { "WinMain" }
		
	configuration "*"	
	
	files
	{
		"EditorRuntime.lua",
		path.join(incdir,"Editor/**.h"),
		"**.h",
		"**.cpp",
		"**.rc",
	}

	configuration "Managed/GwenRenderer.cpp"
		usingdirs { libdir }
		flags { "Managed", "NoMinimalRebuild", "NoRuntimeChecks", "NoPCH" }
	configuration "*"

	vpaths
	{
		["*"] = { ".", path.join(incdir,"Editor") },
	}

	EditorRuntime.deps = {}
	if config.SCRIPTING_MONO then
		table.insert(EditorRuntime.deps,"Mono")
	end
	
	SetupWxWidgets()

	includedirs
	{
		incdir,
		srcdir,
		path.join(incdir,"Editor"),
		path.join(srcdir,"EditorRuntime"),
		path.join(srcdir,"EditorRuntime","Widgets"),
		wxWidgets.includedirs
	}

	libdirs
	{<commit_msg>Changed the EditorRuntime build to target the Premake-built wxWidgets lib.<commit_after>EditorRuntime = {}
EditorRuntime.defines = {}

function SetupWxWidgets()
	wxWidgets = {}
	
	wxWidgets.includedirs =
	{ 
		path.join(depsdir,"wxWidgets/include"),
		path.join(depsdir,"wxWidgets/include/msvc")
	}

	wxWidgets.libdirs = { }	
	wxWidgets.links = { }
	wxWidgets.defines = { '_LIB', 'WXUSINGDLL', 'WXMONOLITHIC' }

	defines { wxWidgets.defines }

	local c = configuration "windows"
		defines { "__WXMSW__" }

	configuration (c)
end

project "EditorRuntime"

	debugdir(bindir)
	
	SetupNativeProjects()

	dependson { EngineManaged.name, EditorClient.name, GUI.name }
	
	defines
	{
		Core.defines,
		Resources.defines,
		Graphics.defines,
		Engine.defines,
		Pipeline.defines
	}

	editor_flags = common_flags
	table.remove(editor_flags, #editor_flags)
	
	flags { editor_flags }

	pchheader "Editor/API.h"
	pchsource "Editor.cpp"
	
	configuration "Debug"
		kind "ConsoleApp"
	
	configuration "Release"
		kind "WindowedApp"
		flags { "WinMain" }
		
	configuration "*"	
	
	files
	{
		"EditorRuntime.lua",
		path.join(incdir,"Editor/**.h"),
		"**.h",
		"**.cpp",
		"**.rc",
	}

	configuration "Managed/GwenRenderer.cpp"
		usingdirs { libdir }
		flags { "Managed", "NoMinimalRebuild", "NoRuntimeChecks", "NoPCH" }
	configuration "*"

	vpaths
	{
		["*"] = { ".", path.join(incdir,"Editor") },
	}

	EditorRuntime.deps = { "wxWidgets" }
	if config.SCRIPTING_MONO then
		table.insert(EditorRuntime.deps,"Mono")
	end
	
	SetupWxWidgets()

	includedirs
	{
		incdir,
		srcdir,
		path.join(incdir,"Editor"),
		path.join(srcdir,"EditorRuntime"),
		path.join(srcdir,"EditorRuntime","Widgets"),
		wxWidgets.includedirs
	}

	libdirs
	{
{'fraction_non_alphanumeric': 0.14783586284429454, 'fraction_numerical': 0.0022484541877459247, 'mean_word_length': 4.1729651162790695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5507768', 'n_tokens_mistral': 1478, 'n_tokens_neox': 1343, 'n_words': 207}