diff options
| author | ruki <[email protected]> | 2025-04-01 23:10:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-01 23:10:48 +0800 |
| commit | f00ac09cae31ed9aa5c191a6ad5f620c2ddfceed (patch) | |
| tree | 61ba724d5d46f5bd6ccdd9ea9fda4b403f1b1546 /xmake/rules/xcode | |
| parent | c47e0343c7f79de334243b330b9e64fc279e636f (diff) | |
improve info.plist rule
Diffstat (limited to 'xmake/rules/xcode')
| -rw-r--r-- | xmake/rules/xcode/info_plist/xmake.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xmake/rules/xcode/info_plist/xmake.lua b/xmake/rules/xcode/info_plist/xmake.lua index 235481846..e58a1c1a8 100644 --- a/xmake/rules/xcode/info_plist/xmake.lua +++ b/xmake/rules/xcode/info_plist/xmake.lua @@ -18,13 +18,8 @@ -- @file xmake.lua -- --- define rule rule("xcode.info_plist") - - -- support add_files("Info.plist") set_extensions(".plist") - - -- build Info.plist on_build_file(function (target, sourcefile, opt) -- imports @@ -34,8 +29,8 @@ rule("xcode.info_plist") import("core.tool.toolchain") import("utils.progress") - -- check - assert(path.filename(sourcefile) == "Info.plist", "we only support Info.plist file!") + -- check, e.g. Info.plist, xxx-Info.plist + assert(path.filename(sourcefile):endswith("Info.plist"), "we only support Info.plist file!") -- get contents and resources directory local contentsdir = assert(target:data("xcode.bundle.contentsdir"), "contents directory not found!") |
