From 5443a08aae0e3737eb1aee683696e20a6779aee0 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 8 Apr 2023 18:08:13 +0800 Subject: [PATCH] build: remove xmake configure --- .gitignore | 1 - src/klotski_core/xmake.lua | 118 ------------------------------------- xmake.lua | 3 - 3 files changed, 122 deletions(-) delete mode 100644 src/klotski_core/xmake.lua delete mode 100644 xmake.lua diff --git a/.gitignore b/.gitignore index 0760b51..98b29d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /bin/ /.idea/ -**/.xmake/ /src/target/ /cmake-build/ /cmake-build-debug/ diff --git a/src/klotski_core/xmake.lua b/src/klotski_core/xmake.lua deleted file mode 100644 index 0b6177d..0000000 --- a/src/klotski_core/xmake.lua +++ /dev/null @@ -1,118 +0,0 @@ ----------------------------------------------------------------- - -set_xmakever("2.5.3") - -set_project("klotski-core") -set_version("0.1.2", {build = "%Y-%m-%d %H:%M:%S"}) -set_languages("cxx14") - -if is_mode("debug") then - set_symbols("debug") - set_optimize("none") -end - -if is_mode("release") then - set_strip("all") - set_symbols("hidden") - set_optimize("fastest") -end - -set_warnings("everything") - ----------------------------------------------------------------- - -add_includedirs("utils") -add_includedirs("all_cases") - -add_includedirs("raw_code") -add_includedirs("short_code") -add_includedirs("common_code") - -add_includedirs("core") -add_includedirs("fast_cal") -add_includedirs("analyse") - -add_includedirs("benchmark") - ----------------------------------------------------------------- - -target("utils") - set_kind("object") - add_files("utils/*.cc") -target_end() - -target("all_cases") - set_kind("object") - add_files("all_cases/*.cc") -target_end() - -target("raw_code") - set_kind("object") - add_files("raw_code/*.cc") -target_end() - -target("short_code") - set_kind("object") - add_includedirs("short_code/offset") - add_files("short_code/*.cc") -target_end() - -target("common_code") - set_kind("object") - add_files("common_code/*.cc") -target_end() - -target("core") - set_kind("object") - add_files("core/*.cc") -target_end() - -target("fast_cal") - set_kind("object") - add_files("fast_cal/*.cc") -target_end() - -target("analyse") - set_kind("object") - add_files("analyse/*.cc") -target_end() - -target("benchmark") - set_kind("object") - add_files("benchmark/*.cc") -target_end() - ----------------------------------------------------------------- - -target("klotski-ffi") - set_kind("object") - add_includedirs(".") - add_files("ffi/*.cc") - - -- TODO: get compiler name and version - set_configvar("COMPILER", "XMake") - - -- TODO: fix wrong header generate path - set_configdir("$(scriptdir)/utils") - add_configfiles("utils/metadata.h.in", { - filename = "metadata.h", pattern = "@(.-)@" - }) -target_end() - ----------------------------------------------------------------- - -target("klotski") - set_kind("static") - add_deps("klotski-ffi") - add_deps("utils", "all_cases") - add_deps("raw_code", "short_code", "common_code") - add_deps("core", "fast_cal", "analyse") - add_deps("benchmark") - set_policy("build.merge_archive", true) - after_build(function (target) - os.cp(target:targetfile(), "$(projectdir)/bin/") - os.cp("$(scriptdir)/klotski.h", "$(projectdir)/bin/") - end) -target_end() - ----------------------------------------------------------------- diff --git a/xmake.lua b/xmake.lua deleted file mode 100644 index 7be094b..0000000 --- a/xmake.lua +++ /dev/null @@ -1,3 +0,0 @@ -set_xmakever("2.5.3") - -add_subdirs("src/klotski_core")