summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/xcassets
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-20 00:38:29 +0800
committerruki <[email protected]>2020-06-19 21:50:59 +0800
commitf5392149886b2083ec0d6db2adef3da405297fe8 (patch)
tree12a41f554b7e4bce55a8fb6f8e46aee2c4eba3f9 /xmake/rules/xcode/xcassets
parentca1bd50cc1e0b5939311ac73c61180957763cbbc (diff)
improve xcode and msvc toolchains
Diffstat (limited to 'xmake/rules/xcode/xcassets')
-rw-r--r--xmake/rules/xcode/xcassets/xmake.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/xmake/rules/xcode/xcassets/xmake.lua b/xmake/rules/xcode/xcassets/xmake.lua
index df25794e5..6803a2999 100644
--- a/xmake/rules/xcode/xcassets/xmake.lua
+++ b/xmake/rules/xcode/xcassets/xmake.lua
@@ -60,13 +60,16 @@ rule("xcode.xcassets")
io.writefile(assetcatalog_generated_info_plist, "")
-- do compile
+ local target_minver
local argv = {"--warnings", "--notices", "--output-format", "human-readable-text"}
if is_plat("macosx") then
+ target_minver = get_config("target_minver_macosx")
table.insert(argv, "--target-device")
table.insert(argv, "mac")
table.insert(argv, "--platform")
table.insert(argv, "macosx")
elseif is_plat("iphoneos") then
+ target_minver = get_config("target_minver_iphoneos")
table.insert(argv, "--target-device")
table.insert(argv, "iphone")
table.insert(argv, "--target-device")
@@ -76,8 +79,10 @@ rule("xcode.xcassets")
else
assert("unknown device!")
end
- table.insert(argv, "--minimum-deployment-target")
- table.insert(argv, get_config("target_minver"))
+ if target_minver then
+ table.insert(argv, "--minimum-deployment-target")
+ table.insert(argv, target_minver)
+ end
table.insert(argv, "--app-icon")
table.insert(argv, "AppIcon")
if is_plat("iphoneos") then