From e4867e248c7ab82df6e8daafaa9a66bb84320db5 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 29 Mar 2025 00:59:24 +0800 Subject: remove builtin files --- xmake/actions/build/target_utils.lua | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/xmake/actions/build/target_utils.lua b/xmake/actions/build/target_utils.lua index a38095808..5aa368a14 100644 --- a/xmake/actions/build/target_utils.lua +++ b/xmake/actions/build/target_utils.lua @@ -302,10 +302,6 @@ function _match_sourcebatches(target, filepatterns) end end --- add file jobs for the builtin script -function _add_filejobs_for_builtin_script(jobgraph, target, sourcebatch, job_kind) -end - -- add file jobs for the given script, TODO on single file function _add_filejobs_for_script(jobgraph, instance, sourcebatch, opt) opt = opt or {} @@ -467,7 +463,6 @@ function _add_filejobs_with_stage(jobgraph, target, sourcebatches, stage, opt) -- call target and rules script local jobsize = jobgraph:size() jobgraph:group(group_name, function () - local has_script = false local script_opt = { script_file_name = script_file_name, script_files_name = script_files_name, @@ -477,24 +472,15 @@ function _add_filejobs_with_stage(jobgraph, target, sourcebatches, stage, opt) for _, instance in ipairs(instances) do if instance == target then for _, sourcebatch in ipairs(sourcebatches) do - if _add_filejobs_for_script(jobgraph, instance, sourcebatch, script_opt) then - has_script = true - end + _add_filejobs_for_script(jobgraph, instance, sourcebatch, script_opt) end else -- rule local sourcebatch = sourcebatches_map[instance] - if sourcebatch and _add_filejobs_for_script(jobgraph, instance, sourcebatch, script_opt) then - has_script = true + if sourcebatch then + _add_filejobs_for_script(jobgraph, instance, sourcebatch, script_opt) end end end - - -- call builtin script, e.g. on_prepare_files, on_build_files, ... - if not has_script and stage == "" then - for _, sourcebatch in ipairs(sourcebatches) do - _add_filejobs_for_builtin_script(jobgraph, target, sourcebatch, job_kind) - end - end end) if jobgraph:size() > jobsize then -- cgit v1.3.1