commit 945d65eb18527277619fb7a6f984f149ef4c88d9 Author: lenheart <947330670@qq.com> Date: Mon Feb 16 06:01:11 2026 +0800 1.0.0 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1521057 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + diff --git a/.vscode/compile_commands.json b/.vscode/compile_commands.json new file mode 100644 index 0000000..97f0d46 --- /dev/null +++ b/.vscode/compile_commands.json @@ -0,0 +1,6 @@ +[ +{ + "directory": "/home/lenheart/Game/Frostbite2D", + "arguments": ["/usr/bin/g++", "-c", "-m64", "-fvisibility=hidden", "-fvisibility-inlines-hidden", "-O3", "-std=c++17", "-finput-charset=UTF-8", "-fexec-charset=UTF-8", "-DNDEBUG", "-o", "build/.objs/Frostbite2D/linux/x86_64/release/src/main.cpp.o", "src/main.cpp"], + "file": "src/main.cpp" +}] diff --git a/folder-alias.json b/folder-alias.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/folder-alias.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/private-folder-alias.json b/private-folder-alias.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/private-folder-alias.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..9b6abff --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main(int argc, char **argv) { + std::cout << "hello world!" << std::endl; + return 0; +} diff --git a/xmake.lua b/xmake.lua new file mode 100644 index 0000000..e7a0dca --- /dev/null +++ b/xmake.lua @@ -0,0 +1,18 @@ +set_project("Frostbite2D") +set_version("1.0.0") +set_license("MIT") + +-- 语言和编码设置 +set_languages("c++17") +set_encodings("utf-8") + +add_rules("mode.debug", "mode.release") + +local host_plat = os.host() +local target_plat = get_config("plat") or host_plat +local supported_plats = {mingw = true, windows = true, linux = true, macosx = true, switch = true} + + +target("Frostbite2D") + set_kind("binary") + add_files("src/*.cpp")