Sfoglia il codice sorgente

Add extsources to fmt (#1339)

* Add extsources to fmt

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua
ImperatorS79 3 anni fa
parent
commit
3ac1379235
1 ha cambiato i file con 6 aggiunte e 5 eliminazioni
  1. 6 5
      packages/f/fmt/xmake.lua

+ 6 - 5
packages/f/fmt/xmake.lua

@@ -14,12 +14,13 @@ package("fmt")
 
     add_configs("header_only", {description = "Use header only version.", default = false, type = "boolean"})
 
-    if is_plat("macosx") then
-        add_extsources("brew::fmt")
-    end
-
-    if is_plat("linux") then
+    
+    if is_plat("mingw") and is_subhost("msys") then
         add_extsources("pacman::fmt")
+    elseif is_plat("linux") then
+        add_extsources("pacman::fmt", "apt::libfmt-dev")
+    elseif is_plat("macosx") then
+        add_extsources("brew::fmt")
     end
 
     on_load(function (package)