Sfoglia il codice sorgente

blook: add new package (#7357)

* Create xmake.lua

* Update xmake.lua

* try to test

---------

Co-authored-by: Saikari <[email protected]>
MicroBlock 2 mesi fa
parent
commit
162e3cd1a7
1 ha cambiato i file con 28 aggiunte e 0 eliminazioni
  1. 28 0
      packages/b/blook/xmake.lua

+ 28 - 0
packages/b/blook/xmake.lua

@@ -0,0 +1,28 @@
+package("blook")
+    set_description("A modern C++ library for hacking.")
+    set_license("GPL-3.0")
+
+    add_urls("https://github.com/std-microblock/blook.git")
+
+    add_versions("2025.04.04", "997b6a288fb2e8cd9b9e2dec0c15c050a52139d3")
+
+    add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
+
+    if is_plat("windows") then
+        add_syslinks("advapi32")
+    end
+
+    add_deps("zasm 916f28f882801c048eaececc2466c8fdc17653fa")
+
+    on_install("windows|!arm*", function (package)
+        import("package.tools.xmake").install(package, {}, {target = "blook"})
+    end)
+
+    on_test(function (package)
+        assert(package:check_cxxsnippets({test = [[
+            #include <blook/process.h>
+            void test() {
+                auto process = blook::Process::self();
+            }
+        ]]}, {configs = {languages = "c++23"}}))
+    end)