Selaa lähdekoodia

improve libusb

ruki 4 vuotta sitten
vanhempi
commit
bbea33fe72
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      packages/l/libusb/xmake.lua

+ 3 - 1
packages/l/libusb/xmake.lua

@@ -23,7 +23,9 @@ package("libusb")
 
 
     -- it will be provided in xmake v2.5.2
     -- it will be provided in xmake v2.5.2
     if add_extsources then
     if add_extsources then
-        add_extsources("pkgconfig::libusb-1.0")
+        if is_plat("macosx", "linux") then
+            add_extsources("pkgconfig::libusb-1.0")
+        end
     end
     end
 
 
     add_includedirs("include", "include/libusb-1.0")
     add_includedirs("include", "include/libusb-1.0")