package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
666 B

package("sokol")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/floooh/sokol")
set_description("Simple STB-style cross-platform libraries for C and C++, written in C.")
set_license("zlib")
add_urls("https://github.com/floooh/sokol.git")
add_versions("2022.02.10", "e8931e4399a0eb4bf026120d7bdb89825815af9e")
on_install(function (package)
os.cp("*.h", package:installdir("include"))
os.cp("util/*.h", package:installdir("include", "util"))
end)
on_test(function (package)
assert(package:has_cfuncs("sargs_setup", {includes = "sokol_args.h", defines = "SOKOL_IMPL"}))
end)