diff options
| author | ruki <[email protected]> | 2020-04-04 21:54:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-04 21:54:21 +0800 |
| commit | 0f2d5d416b658b44752021fdac3be264afee3324 (patch) | |
| tree | 912d2582a54dd5301b5fc6ebae8c772094199d78 /xmake/rules/xcode/bundle | |
| parent | db450e5497761c5def6cab798d7fabfc4316214a (diff) | |
enable -bundle flags
Diffstat (limited to 'xmake/rules/xcode/bundle')
| -rw-r--r-- | xmake/rules/xcode/bundle/xmake.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/rules/xcode/bundle/xmake.lua b/xmake/rules/xcode/bundle/xmake.lua index 2e486cffd..5911e5fff 100644 --- a/xmake/rules/xcode/bundle/xmake.lua +++ b/xmake/rules/xcode/bundle/xmake.lua @@ -30,10 +30,13 @@ rule("xcode.bundle") target:data_set("xcode.bundledir", bundledir) -- set target info for bundle - target:set("kind", "shared") target:set("filename", target:basename()) target:set("targetdir", path.join(bundledir, "Contents", "MacOS")) + -- generate binary as bundle, we cannot set `-shared` or `-dynamiclib` + target:set("kind", "binary") + target:add("ldflags", "-bundle", {force = true}) + -- register clean files for `xmake clean` target:add("cleanfiles", bundledir) end) |
