refactor xmake scripts

This commit is contained in:
2024-08-11 13:58:25 +02:00
parent d9e2c19cd4
commit a7fcaa95fe
5 changed files with 107 additions and 112 deletions

15
xmake/editor.lua Normal file
View File

@@ -0,0 +1,15 @@
target("Editor")
set_default(false)
-- Disable building
on_build((function() end))
on_run(
(function(godot_project_folder)
return function(target)
local project_file = path.join(godot_project_folder, "project.godot")
os.execv("echo", {"godot", project_file})
os.exec("godot " .. project_file)
end
end)(GODOT_PROJECT_FOLDER)
)