Переглянути джерело

Add extsources to freetype (#601)

* Add extsources to freetype

* Update xmake.lua
ImperatorS79 4 роки тому
батько
коміт
7e35475005
1 змінених файлів з 4 додано та 2 видалено
  1. 4 2
      packages/f/freetype/xmake.lua

+ 4 - 2
packages/f/freetype/xmake.lua

@@ -14,8 +14,10 @@ package("freetype")
         add_extsources("pkgconfig::freetype2")
         add_extsources("pkgconfig::freetype2")
     end
     end
 
 
-    if is_host("linux") then
-        add_extsources("apt::libfreetype6")
+    if is_plat("mingw") and is_subhost("msys") then
+        add_extsources("pacman::freetype")
+    elseif is_host("linux") then
+        add_extsources("pacman::freetype2", "apt::libfreetype-dev")
     elseif is_host("macosx") then
     elseif is_host("macosx") then
         add_extsources("brew::freetype")
         add_extsources("brew::freetype")
     end
     end