From 31a2552c4b82bc97d5b47de4ea7b8e0d28a50b32 Mon Sep 17 00:00:00 2001 From: xpxz <97490782+heheda123123@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:22:54 +0800 Subject: [PATCH] vld: fix format error (#5165) * fix format error * Update xmake.lua * Update xmake.lua --------- Co-authored-by: star9029 --- packages/v/vld/xmake.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/v/vld/xmake.lua b/packages/v/vld/xmake.lua index 8fc7b52db3c..22d6e7f5036 100644 --- a/packages/v/vld/xmake.lua +++ b/packages/v/vld/xmake.lua @@ -1,21 +1,21 @@ package("vld") - set_homepage("https://github.com/oneiric/vld") set_description("Visual Leak Detector for Visual C++") + set_license("LGPL-2.1") + + add_urls("https://github.com/oneiric/vld/archive/refs/tags/$(version).zip", + "https://github.com/oneiric/vld.git") - add_urls("https://github.com/oneiric/vld/archive/refs/tags/v$(version).zip") - add_versions("2.7.0", "1bb5695a424b234d29d16acdc6bdb4be79d58501674b6d3765a19f237c5ad0f2") + add_versions("v2.7.0", "1bb5695a424b234d29d16acdc6bdb4be79d58501674b6d3765a19f237c5ad0f2") - add_configs("shared", {description = "Download shared binaries.", default = true, type = "boolean", readonly=true}) + add_configs("shared", {description = "Build shared binaries.", default = true, type = "boolean", readonly = true}) - on_install("windows", function (package) - io.replace("src/tests/basics/Allocs.cpp", "#error Unsupported compiler", '#define CRTDLLNAME _T("ucrtbase.dll")', {plain=true}) - io.replace("src/tests/suite/testsuite.cpp", "#error Unsupported compiler", '#define CRTDLLNAME _T("ucrtbase.dll")', {plain=true}) - local configs = {"vld_vs16.sln"} + on_install("windows|!arm64", function (package) + local configs = {"vld_vs16.sln", "-t:vld"} table.insert(configs, "/p:Configuration=" .. (package:debug() and "Debug" or "Release")) table.insert(configs, "/p:Platform=" .. (package:is_arch("x64") and "x64" or "Win32")) - table.insert(configs, "-t:vld") import("package.tools.msbuild").build(package, configs) + os.cp("src/*.h", package:installdir("include")) os.cp("setup/dbghelp/" .. (package:is_arch("x64") and "x64" or "x86") .. "/*", package:installdir("bin")) local outputdir = path.join("src","bin", package:is_arch("x64") and "x64" or "Win32", (package:debug() and "Debug" or "Release-") .. "*")