浏览代码

improve libusb

ruki 4 年之前
父节点
当前提交
66f5ae98c4
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      packages/l/libusb/xmake.lua

+ 5 - 0
packages/l/libusb/xmake.lua

@@ -21,6 +21,11 @@ package("libusb")
         add_syslinks("pthread")
     end
 
+    -- it will be provided in xmake v2.5.2
+    if add_extsources then
+        add_extsources("pkgconfig::libusb-1.0")
+    end
+
     add_includedirs("include", "include/libusb-1.0")
 
     on_install("windows", function (package)