浏览代码

Merge pull request #77 from PucklaMotzer09/stb

Add stb
ruki 5 年之前
父节点
当前提交
541bd5b171
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      packages/s/stb/xmake.lua

+ 16 - 0
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)