diff --git a/premake/rythe/projects.lua b/premake/rythe/projects.lua index 90b933e33..a1a896e76 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)