From c5815c175b009fa2df90d9eab3d698de02ff3610 Mon Sep 17 00:00:00 2001 From: yamashi Date: Fri, 22 Jan 2021 17:13:10 +0100 Subject: [PATCH] Add mem package (#245) * Create xmake.lua * Update xmake.lua * Update xmake.lua * Update xmake.lua --- packages/m/mem/xmake.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/m/mem/xmake.lua diff --git a/packages/m/mem/xmake.lua b/packages/m/mem/xmake.lua new file mode 100644 index 000000000..2d8c79000 --- /dev/null +++ b/packages/m/mem/xmake.lua @@ -0,0 +1,18 @@ +package("mem") + + set_homepage("https://github.com/0x1F9F1/mem") + set_description("A collection of C++11 headers useful for reverse engineering") + + set_urls("https://github.com/0x1F9F1/mem") + + add_versions("0.1.0", "2be6647b8f4c5cdbbd6799eaca80ad6bda07cb2097a0ddd705acff748507f615") + add_deps("cmake") + + on_install("windows", function (package) + local configs = {} + import("package.tools.cmake").install(package, configs) + end) + + on_test(function (package) + assert(package:has_cxxfuncs("mem::module::main()", {includes = "mem/module.h", configs = {languages = "c++11"}})) + end)