From 33fa04ab323d3847c6855a6b32037905316286fb Mon Sep 17 00:00:00 2001 From: Glyn Leine Date: Mon, 29 Apr 2024 23:09:15 +0200 Subject: [PATCH] add disable fast up to date check feature for utility projects --- premake/rythe/projects.lua | 6 ++++++ utils/refresh/.rythe_project | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/premake/rythe/projects.lua b/premake/rythe/projects.lua index f467ee7f3..9031febf6 100644 --- a/premake/rythe/projects.lua +++ b/premake/rythe/projects.lua @@ -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 @@ -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 diff --git a/utils/refresh/.rythe_project b/utils/refresh/.rythe_project index 89a0f0f03..0a38928da 100644 --- a/utils/refresh/.rythe_project +++ b/utils/refresh/.rythe_project @@ -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)