From f17be0ed68ed4b0b4f29d60dbac3c7c8c383e944 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Mon, 30 Jan 2023 00:35:34 +0800 Subject: [PATCH] test: update xmake lua script --- src/klotski_core/xmake.lua | 25 ++----------------------- xmake.lua | 2 -- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/src/klotski_core/xmake.lua b/src/klotski_core/xmake.lua index 819969f..0b6177d 100644 --- a/src/klotski_core/xmake.lua +++ b/src/klotski_core/xmake.lua @@ -92,7 +92,8 @@ target("klotski-ffi") -- TODO: get compiler name and version set_configvar("COMPILER", "XMake") - set_configdir("$(projectdir)/utils") + -- TODO: fix wrong header generate path + set_configdir("$(scriptdir)/utils") add_configfiles("utils/metadata.h.in", { filename = "metadata.h", pattern = "@(.-)@" }) @@ -108,32 +109,10 @@ target("klotski") add_deps("core", "fast_cal", "analyse") add_deps("benchmark") set_policy("build.merge_archive", true) - after_build(function (target) - import("core.project.config") - --- local target_file = target:targetfile() - os.cp(target:targetfile(), "$(projectdir)/bin/") os.cp("$(scriptdir)/klotski.h", "$(projectdir)/bin/") - end) - --- before_build(function(target) --- print("23333 -> $(scriptdir)") --- os.cp("$(scriptdir)/xxx.h", "$(buildir)/inc") - --- set_targetdir("$(scriptdir)/../../bin/") - --- end) - --- print("23333 -> $(scriptdir)") - --- set_targetdir("$(scriptdir)/../../bin/") - --- after_build(function (target) --- os.cp("$(projectdir)/klotski.h", "$(projectdir)/../../bin/") --- end) target_end() ---------------------------------------------------------------- diff --git a/xmake.lua b/xmake.lua index 8594f20..7be094b 100644 --- a/xmake.lua +++ b/xmake.lua @@ -1,5 +1,3 @@ set_xmakever("2.5.3") -BUILD_DN = "2333" - add_subdirs("src/klotski_core")