aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-09-22 15:52:59 +0200
committerGitHub <[email protected]>2023-09-22 15:52:59 +0200
commit1540407efbaa6dd12050b703be7bd2729665a468 (patch)
tree9ade8bc79da6a7c520cf3b587b330b9fd2df5ae0 /xmake.lua
parentadded linker/compile options for determinism (#420) (diff)
downloadzen-1540407efbaa6dd12050b703be7bd2729665a468.tar.xz
zen-1540407efbaa6dd12050b703be7bd2729665a468.zip
added support for sln on Mac (#421)
this makes it so users can use xmake sln on Mac as well as Windows to generate IDE files
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/xmake.lua b/xmake.lua
index df44dc7e6..deb541590 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -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 {