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

26
xmake/godot.lua Normal file
View File

@@ -0,0 +1,26 @@
------- project settings -------
-- project name
set_project(PROJECT_NAME)
-- project version
set_version(VERSION)
-- min version of xmake we need to run
-- NOTE: this is the version i used to develop this template, may not 100% correct
set_xmakever("2.9.0")
add_rules("mode.debug", "mode.release")
-- c++17 is required for godot 4.x, we use c++20 here
set_languages("c++20")
-- use latest 4.x version by default
add_requires("godotcpp4")
includes("tasks.lua")
includes("target.lua")
includes("editor.lua")