summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-01 00:45:44 +0800
committerruki <[email protected]>2023-09-01 00:45:44 +0800
commitabc48d4f230d471ebf53051bf36f2a0ecd94077e (patch)
tree8027e583c9eb56d976b5b1abcf3bbd20bd8dc7b9 /xmake/rules/xcode
parent85f19d35241297cc92e41fe437f8ed27e5e8e3d2 (diff)
replace on_changed
Diffstat (limited to 'xmake/rules/xcode')
-rw-r--r--xmake/rules/xcode/application/build.lua4
-rw-r--r--xmake/rules/xcode/bundle/xmake.lua4
-rw-r--r--xmake/rules/xcode/framework/xmake.lua4
3 files changed, 6 insertions, 6 deletions
diff --git a/xmake/rules/xcode/application/build.lua b/xmake/rules/xcode/application/build.lua
index f65ad2855..a3cbf062f 100644
--- a/xmake/rules/xcode/application/build.lua
+++ b/xmake/rules/xcode/application/build.lua
@@ -35,7 +35,7 @@ function main (target, opt)
local frameworksdir = path.join(contentsdir, "Frameworks")
-- 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))
@@ -106,6 +106,6 @@ function main (target, opt)
end
codesign(bundledir, codesign_identity, mobile_provision, {deep = true})
- end, {dependfile = target:dependfile(bundledir), files = {bundledir, target:targetfile()}})
+ end, {dependfile = target:dependfile(bundledir), files = {bundledir, target:targetfile()}, changed = target:is_rebuilt()})
end
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)
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua
index 73370e4e2..81bd4ebc4 100644
--- a/xmake/rules/xcode/framework/xmake.lua
+++ b/xmake/rules/xcode/framework/xmake.lua
@@ -94,7 +94,7 @@ rule("xcode.framework")
local headersdir = path.join(contentsdir, "Headers")
-- 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))
@@ -162,7 +162,7 @@ rule("xcode.framework")
end
codesign(contentsdir, codesign_identity)
end
- 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)