From fbeb9cf3b674806760ee5f970a0124d459a1dc16 Mon Sep 17 00:00:00 2001 From: Glyn Leine Date: Sat, 25 Nov 2023 16:08:18 +0100 Subject: [PATCH] start working on file filters for projects --- premake/rythe/projects.lua | 16 +++++++++++++++- premake/rythe/rythe.lua | 4 ++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/premake/rythe/projects.lua b/premake/rythe/projects.lua index f39a3dfa9..0cdd409cd 100644 --- a/premake/rythe/projects.lua +++ b/premake/rythe/projects.lua @@ -96,6 +96,10 @@ function projects.load(projectPath) project.src = projectFile project.location = projectPath + if project.files == nil then -- files can be an empty table if no files need to be loaded + project.files = { "**.hpp", "**.inl", "**.cpp" } + end + loadedProjects[projectPath] = project return project @@ -192,13 +196,23 @@ function projects.scan(path) message = message .. "\n\t" .. assem end - if project.dependencies ~= nil then + if not utils.tableIsEmpty(project.dependencies) then message = message .. "\n Dependencies:" for i, dep in ipairs(project.dependencies) do message = message .. "\n\t" .. dep end end + message = message .. "\n Location: " .. project.location + message = message .. "\n Src: " .. project.src + + if not utils.tableIsEmpty(project.defines) then + message = message .. "\n Defines:" + for i, def in ipairs(project.defines) do + message = message .. "\n\t" .. def + end + end + print(message) end end diff --git a/premake/rythe/rythe.lua b/premake/rythe/rythe.lua index 21e8fd957..35aa5bf5b 100644 --- a/premake/rythe/rythe.lua +++ b/premake/rythe/rythe.lua @@ -8,8 +8,8 @@ premake.rythe = { }, loadedProjects = {}, buildSettings = { - platform = "x86_64" - toolset = "clang" + platform = "x86_64", + toolset = "clang", cppVersion = "C++23" } }