From 70955a557dc3caf7dc16d9693aff45cc76f22e94 Mon Sep 17 00:00:00 2001 From: PucklaMotzer09 Date: Wed, 30 Sep 2020 15:20:49 +0200 Subject: [PATCH] Add stb --- packages/s/stb/xmake.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/s/stb/xmake.lua diff --git a/packages/s/stb/xmake.lua b/packages/s/stb/xmake.lua new file mode 100644 index 000000000..fc620c693 --- /dev/null +++ b/packages/s/stb/xmake.lua @@ -0,0 +1,16 @@ +package("stb") + + set_homepage("https://github.com/nothings/stb") + set_description("single-file public domain (or MIT licensed) libraries for C/C++") + + add_urls("https://github.com/nothings/stb.git") + add_versions("0.0", "b42009b3b9d4ca35bc703f5310eedc74f584be58") + + on_install(function (package) + os.cp("*.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cfuncs("stbi_load_from_memory", {includes = "stb_image.h"})) + assert(package:has_cfuncs("stb_include_string", {includes = "stb_include.h"})) + end) \ No newline at end of file