Browse Source

improve libusb

ruki 4 years ago
parent
commit
bbea33fe72
1 changed files with 3 additions and 1 deletions
  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
     if add_extsources then
-        add_extsources("pkgconfig::libusb-1.0")
+        if is_plat("macosx", "linux") then
+            add_extsources("pkgconfig::libusb-1.0")
+        end
     end
 
     add_includedirs("include", "include/libusb-1.0")