diff options
| author | ruki <[email protected]> | 2023-09-01 09:40:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-01 09:40:50 +0800 |
| commit | 2df911b8d9f35d293d6215a52dd77522078016af (patch) | |
| tree | 8230bc3f1b7c156f4b7c9a0f6baaf5448862f873 /xmake/rules/xcode | |
| parent | 515dbd9e94793b0bd126a19ecc8f482752897ed9 (diff) | |
| parent | dcc5abf105e7df9d47e37e18191bef2503edb085 (diff) | |
Merge pull request #4159 from xmake-io/rebuild
improve to rebuild target #4154
Diffstat (limited to 'xmake/rules/xcode')
| -rw-r--r-- | xmake/rules/xcode/application/build.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/xcode/bundle/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/xcode/framework/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/xcode/info_plist/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/xcode/storyboard/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/xcode/xcassets/xmake.lua | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/xmake/rules/xcode/application/build.lua b/xmake/rules/xcode/application/build.lua index f65ad2855..736de948c 100644 --- a/xmake/rules/xcode/application/build.lua +++ b/xmake/rules/xcode/application/build.lua @@ -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..31c0a8296 100644 --- a/xmake/rules/xcode/bundle/xmake.lua +++ b/xmake/rules/xcode/bundle/xmake.lua @@ -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..10b2f337f 100644 --- a/xmake/rules/xcode/framework/xmake.lua +++ b/xmake/rules/xcode/framework/xmake.lua @@ -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) diff --git a/xmake/rules/xcode/info_plist/xmake.lua b/xmake/rules/xcode/info_plist/xmake.lua index ddcc30336..235481846 100644 --- a/xmake/rules/xcode/info_plist/xmake.lua +++ b/xmake/rules/xcode/info_plist/xmake.lua @@ -43,7 +43,7 @@ rule("xcode.info_plist") -- need re-compile it? local dependfile = target:dependfile(sourcefile) - local dependinfo = option.get("rebuild") and {} or (depend.load(dependfile) or {}) + local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile) or {}) if not depend.is_changed(dependinfo, {lastmtime = os.mtime(dependfile)}) then return end diff --git a/xmake/rules/xcode/storyboard/xmake.lua b/xmake/rules/xcode/storyboard/xmake.lua index 3db9db4c3..129e130c2 100644 --- a/xmake/rules/xcode/storyboard/xmake.lua +++ b/xmake/rules/xcode/storyboard/xmake.lua @@ -46,7 +46,7 @@ rule("xcode.storyboard") -- need re-compile it? local dependfile = target:dependfile(sourcefile) - local dependinfo = option.get("rebuild") and {} or (depend.load(dependfile) or {}) + local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile) or {}) if not depend.is_changed(dependinfo, {lastmtime = os.mtime(dependfile)}) then return end diff --git a/xmake/rules/xcode/xcassets/xmake.lua b/xmake/rules/xcode/xcassets/xmake.lua index 9322d10c1..4479b6b95 100644 --- a/xmake/rules/xcode/xcassets/xmake.lua +++ b/xmake/rules/xcode/xcassets/xmake.lua @@ -43,7 +43,7 @@ rule("xcode.xcassets") -- need re-compile it? local dependfile = target:dependfile(sourcefile) - local dependinfo = option.get("rebuild") and {} or (depend.load(dependfile) or {}) + local dependinfo = target:is_rebuilt() and {} or (depend.load(dependfile) or {}) if not depend.is_changed(dependinfo, {lastmtime = os.mtime(dependfile)}) then return end |
