浏览代码

Add extsources to libsdl_ttf (#568)

PucklaMotzer09 4 年之前
父节点
当前提交
ee9de9cf8b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      packages/l/libsdl_ttf/xmake.lua

+ 6 - 0
packages/l/libsdl_ttf/xmake.lua

@@ -11,6 +11,12 @@ package("libsdl_ttf")
         add_versions("2.0.15", "cdb72b5b1c3b27795fa128af36f369fee5d3e38a96c350855da0b81880555dbc")
     end
 
+    if is_plat("linux") then
+        add_extsources("pacman::sdl2_ttf", "apt::libsdl2-ttf-dev")
+    elseif is_plat("macosx") then
+        add_extsources("brew::sdl2_ttf")
+    end
+
     add_deps("libsdl")
     if is_plat("linux", "macosx") then
         add_deps("freetype")