From abc48d4f230d471ebf53051bf36f2a0ecd94077e Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 1 Sep 2023 00:45:44 +0800 Subject: replace on_changed --- xmake/rules/xcode/bundle/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/rules/xcode/bundle/xmake.lua') diff --git a/xmake/rules/xcode/bundle/xmake.lua b/xmake/rules/xcode/bundle/xmake.lua index 9713e3b09..da78ec748 100644 --- a/xmake/rules/xcode/bundle/xmake.lua +++ b/xmake/rules/xcode/bundle/xmake.lua @@ -77,7 +77,7 @@ rule("xcode.bundle") local resourcesdir = path.absolute(target:data("xcode.bundle.resourcesdir")) -- do build if changed - depend.on_changed(function () + depend._on_changed(function () -- trace progress info progress.show(opt.progress, "${color.build.target}generating.xcode.$(mode) %s", path.filename(bundledir)) @@ -109,7 +109,7 @@ rule("xcode.bundle") end codesign(bundledir, codesign_identity) - end, {dependfile = target:dependfile(bundledir), files = {bundledir, target:targetfile()}}) + end, {dependfile = target:dependfile(bundledir), files = {bundledir, target:targetfile()}, changed = target:is_rebuilt()}) end) on_install(function (target) -- cgit v1.3.1