Skip to content

Commit

Permalink
Merge branch 'develop/premake' of https://github.com/Rythe-Interactiv…
Browse files Browse the repository at this point in the history
…e/Rythe-Engine into develop/premake
  • Loading branch information
Ragingram2 committed May 3, 2024
2 parents 9214166 + 33fa04a commit 6edd409
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions premake/rythe/projects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ local function loadProject(projectId, project, projectPath, name, projectType)
project.types[1] = projectType
end

if project.fast_up_to_date_check == nil then
project.fast_up_to_date_check = true
end

if not utils.tableIsEmpty(project.additional_types) then
project.types = utils.concatTables(project.types, project.additional_types)
end
Expand Down Expand Up @@ -444,6 +448,8 @@ function projects.submit(proj)
filename(proj.alias .. projectNameSuffix(projectType))
location("build/" .. _ACTION .. "/" .. proj.group)

fastuptodate(proj.fast_up_to_date_check)

if proj.pre_build ~= nil then
prebuildcommands(proj.pre_build)
end
Expand Down
6 changes: 4 additions & 2 deletions utils/refresh/.rythe_project
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
local project = {
post_build = {}
pre_build = {},
fast_up_to_date_check = false
}

function project.init(proj, ctx)
proj.post_build = {
proj.pre_build = {
"cd " .. _WORKING_DIR,
ctx.getCommand()
}

local targetPattern = "build/" .. _ACTION .. "/bin/**/" .. proj.name
for i, dir in ipairs(os.matchdirs(targetPattern)) do
print(dir)
Expand Down

0 comments on commit 6edd409

Please sign in to comment.