<commit_before>-- This is the starting point of the build scripts for the project.
-- It defines the common build settings that all the projects share
-- and calls the build scripts of all the sub-projects.

dofile "Helpers.lua"

ImportConfigs()

print("Generating the build configuration 'Build.h'")
local conf = GenerateBuildConfig(config)
WriteConfigToFile(conf, "../Build.h")

solution "Flood"
	
	configurations { "Debug", "Release" }
	platforms { "x32", "x64", "pnacl" }
	defaultplatform "x32"
	
	flags { common_flags }
	language "C++"
	framework "4.5"
	
	location (builddir)
	objdir (builddir .. "/obj/")
	targetdir (libdir)
	libdirs { libdir }
	
	debugdir (bindir)
	startproject "EditorRuntime"

	-- Build configuration options

	configuration "pnacl"
		system "nacl"
		architecture "pnacl"
	
	configuration "Release"
		flags { "Optimize" }

	configuration "Debug"
		defines { "DEBUG" }
		
	configuration {}
	
	group "Native"
	
		dofile( srcdir .. "/Core/Core.lua")
		dofile( srcdir .. "/Resources/Resources.lua")
		dofile( srcdir .. "/Graphics/Graphics.lua")
		dofile( srcdir .. "/Engine/Engine.lua")
		dofile( srcdir .. "/Pipeline/Pipeline.lua")

	--group "Runtimes"

		--dofile( srcdir .. "/Runtime/Runtime.lua")
		--dofile( srcdir .. "/GameRuntime/GameRuntime.lua")

	group "Managed"

		dofile( srcdir .. "/EngineManaged/Bindings/EngineBindings.lua")
		dofile( srcdir .. "/EngineManaged/Bindings.CSharp/EngineBindings.CSharp.lua")
        dofile( srcdir .. "/EngineBindings.Tests/EngineBindings.Tests.lua")
		dofile( srcdir .. "/EngineManaged/EngineManaged.lua")
		dofile( srcdir .. "/EngineManaged.Tests/EngineManaged.Tests.lua")
		dofile( srcdir .. "/ServerManaged/ServerManaged.lua")
        
	group "Editor"
	
		dofile( srcdir .. "/Editor/Editor.Client/Editor.Client.lua")
		dofile( srcdir .. "/EditorRuntime/EditorRuntime.lua")
		dofile( srcdir .. "/Editor/Editor.Shared/Editor.Shared.lua")
		dofile( srcdir .. "/Editor/Editor.Server/Editor.Server.lua")
		dofile( srcdir .. "/Editor/Editor.Tests/Editor.Tests.lua")

	group "Editor/Addins"

    	print("Searching for addins...")
    	IncludePremakeProjects(path.join(srcdir, "Editor","Addins", "*"))		<commit_msg>Updated build scripts for new editor runtime.<commit_after>-- This is the starting point of the build scripts for the project.
-- It defines the common build settings that all the projects share
-- and calls the build scripts of all the sub-projects.

dofile "Helpers.lua"

ImportConfigs()

print("Generating the build configuration 'Build.h'")
local conf = GenerateBuildConfig(config)
WriteConfigToFile(conf, "../Build.h")

solution "Flood"
	
	configurations { "Debug", "Release" }
	platforms { "x32", "x64", "pnacl" }
	defaultplatform "x32"
	
	flags { common_flags }
	language "C++"
	framework "4.5"
	
	location (builddir)
	objdir (builddir .. "/obj/")
	targetdir (libdir)
	libdirs { libdir }
	
	debugdir (bindir)
	startproject "Editor"

	-- Build configuration options

	configuration "pnacl"
		system "nacl"
		architecture "pnacl"
	
	configuration "Release"
		flags { "Optimize" }

	configuration "Debug"
		defines { "DEBUG" }
		
	configuration {}
	
	group "Native"
	
		dofile( srcdir .. "/Core/Core.lua")
		dofile( srcdir .. "/Resources/Resources.lua")
		dofile( srcdir .. "/Graphics/Graphics.lua")
		dofile( srcdir .. "/Engine/Engine.lua")
		dofile( srcdir .. "/Pipeline/Pipeline.lua")

	--group "Runtimes"

		--dofile( srcdir .. "/Runtime/Runtime.lua")
		--dofile( srcdir .. "/GameRuntime/GameRuntime.lua")

	group "Managed"

		dofile( srcdir .. "/EngineManaged/Bindings/EngineBindings.lua")
		dofile( srcdir .. "/EngineManaged/Bindings.CSharp/EngineBindings.CSharp.lua")
        dofile( srcdir .. "/EngineBindings.Tests/EngineBindings.Tests.lua")
		dofile( srcdir .. "/EngineManaged/EngineManaged.lua")
		dofile( srcdir .. "/EngineManaged.Tests/EngineManaged.Tests.lua")
		dofile( srcdir .. "/ServerManaged/ServerManaged.lua")
        
	group "Editor"
	
		dofile( srcdir .. "/Editor/Editor/Editor.lua")
		dofile( srcdir .. "/Editor/Editor.Client/Editor.Client.lua")
		dofile( srcdir .. "/Editor/Editor.Shared/Editor.Shared.lua")
		dofile( srcdir .. "/Editor/Editor.Server/Editor.Server.lua")
		dofile( srcdir .. "/Editor/Editor.Tests/Editor.Tests.lua")
		dofile( srcdir .. "/Editor/Editor.Native/Editor.Native.lua")

	group "Editor/Addins"

    	print("Searching for addins...")
    	IncludePremakeProjects(path.join(srcdir, "Editor","Addins", "*"))		
{'fraction_non_alphanumeric': 0.15055217489294567, 'fraction_numerical': 0.003606040117196304, 'mean_word_length': 3.637408568443051, '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': '3070348', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1503, 'n_words': 335}