diff options
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -190,11 +190,17 @@ task("precommit") task("sln") set_menu { usage = "xmake sln", - description = "Generate Visual Studio project files", + description = "Generate IDE project files", } - on_run(function () - print(os.exec("xmake project --yes --kind=vsxmake2022 -m release,debug -a x64")) - end) + if is_os("windows") then + on_run(function () + print(os.exec("xmake project --yes --kind=vsxmake2022 -m release,debug -a x64")) + end) + elseif is_os("macosx") then + on_run(function () + print(os.exec("xmake project --yes --kind=xcode -m release,debug -a x64,arm64")) + end) + end task("test") set_menu { |