From 1f1db3d85315255f408e6fd4b370bd0eef7b1aa8 Mon Sep 17 00:00:00 2001 From: Doekin Date: Fri, 4 Oct 2024 23:05:14 +0800 Subject: [PATCH] Add support for Mingw --- packages/p/pcapplusplus/xmake.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/p/pcapplusplus/xmake.lua b/packages/p/pcapplusplus/xmake.lua index 41a3436f886..7642beae20a 100644 --- a/packages/p/pcapplusplus/xmake.lua +++ b/packages/p/pcapplusplus/xmake.lua @@ -13,18 +13,18 @@ package("pcapplusplus") add_links("Pcap++", "Packet++", "Common++") - if is_plat("windows") then + if is_plat("windows") or is_plat("mingw") then add_syslinks("ws2_32", "iphlpapi") end add_deps("cmake") - if is_plat("windows") then + if is_plat("windows") or is_plat("mingw") then add_deps("npcap_sdk") elseif is_plat("linux") then add_deps("libpcap") end - on_install("windows", "linux", function (package) + on_install("windows", "mingw", "linux", function (package) local configs = { "-DPCAPPP_BUILD_EXAMPLES=OFF", "-DPCAPPP_BUILD_TESTS=OFF",