Skip to content

Commit

Permalink
start working on file filters for projects
Browse files Browse the repository at this point in the history
  • Loading branch information
GlynLeine committed Nov 25, 2023
1 parent 9ea4dc8 commit fbeb9cf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion premake/rythe/projects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions premake/rythe/rythe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ premake.rythe = {
},
loadedProjects = {},
buildSettings = {
platform = "x86_64"
toolset = "clang"
platform = "x86_64",
toolset = "clang",
cppVersion = "C++23"
}
}
Expand Down

0 comments on commit fbeb9cf

Please sign in to comment.