diff options
| author | ruki <[email protected]> | 2020-12-16 23:49:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-16 23:49:44 +0800 |
| commit | c3bec4b1e483f5bcf443cf1a26b3b8bd8cfa2fba (patch) | |
| tree | 5ba61ef9a096a332a2862cb158fe4c19fd38d76f /xmake/rules/xcode/application/load.lua | |
| parent | c0aafd82e851cbdbba2292e02df4ac23d00f9ae6 (diff) | |
improve app rules
Diffstat (limited to 'xmake/rules/xcode/application/load.lua')
| -rw-r--r-- | xmake/rules/xcode/application/load.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/xcode/application/load.lua b/xmake/rules/xcode/application/load.lua index e4f76191e..7cf0625f0 100644 --- a/xmake/rules/xcode/application/load.lua +++ b/xmake/rules/xcode/application/load.lua @@ -29,7 +29,7 @@ function main (target) -- get contents and resources directory local contentsdir = bundledir local resourcesdir = bundledir - if is_plat("macosx") then + if target:is_plat("macosx") then contentsdir = path.join(bundledir, "Contents") resourcesdir = path.join(bundledir, "Contents", "Resources") end @@ -41,12 +41,12 @@ function main (target) target:set("filename", target:basename()) -- set install directory - if is_plat("macosx") and not target:get("installdir") then + if target:is_plat("macosx") and not target:get("installdir") then target:set("installdir", "/Applications") end -- add frameworks - if is_plat("macosx") then + if target:is_plat("macosx") then target:add("frameworks", "AppKit") else target:add("frameworks", "UIKit") |
