adding software computer base

This commit is contained in:
2025-03-02 21:37:17 +01:00
parent 93a69d37e9
commit 9771dcc530
25 changed files with 539 additions and 25 deletions

30
Xmake/packages/s/spirv-vm/xmake.lua git.filemode.normal_file
View File

@@ -0,0 +1,30 @@
package("spirv-vm")
set_homepage("https://github.com/dfranx/SPIRV-VM/")
set_description("A Virtual machine for executing SPIR-V.")
set_license("MIT")
add_urls("https://github.com/dfranx/SPIRV-VM.git")
on_install(function (package)
os.cp("inc/spvm", package:installdir("include"))
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
target("spirv-vm")
set_kind("$(kind)")
add_files("src/**.c")
add_includedirs("inc/")
--add_headerfiles("inc/**.h")
]])
import("package.tools.xmake").install(package)
end)
on_test(function (package)
assert(package:check_csnippets({test = [[
#include <spvm/context.h>
void test()
{
spvm_context_t ctx = spvm_context_initialize();
spvm_context_deinitialize(ctx);
}
]]}))
end)

View File

@@ -1,21 +1,21 @@
package("tiny-c-thread")
set_homepage("https://github.com/tinycthread/tinycthread")
set_description("A small, portable implementation of the C11 threads API.")
set_license("MIT")
set_description("A small, portable implementation of the C11 threads API.")
set_license("MIT")
add_urls("https://github.com/tinycthread/tinycthread.git")
add_urls("https://github.com/tinycthread/tinycthread.git")
on_install(function (package)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
target("tiny-c-thread")
set_kind("static")
add_files("source/*.c")
add_headerfiles("source/*.h")
]])
import("package.tools.xmake").install(package)
end)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
target("tiny-c-thread")
set_kind("static")
add_files("source/*.c")
add_headerfiles("source/*.h")
]])
import("package.tools.xmake").install(package)
end)
on_test(function (package)
assert(package:has_ctypes("thrd_t", {configs = {languages = "c11"}, includes = "tinycthread.h"}))
end)
on_test(function (package)
assert(package:has_ctypes("thrd_t", {configs = {languages = "c11"}, includes = "tinycthread.h"}))
end)