mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
adding software computer base
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user