Skip to content

Commit

Permalink
Add support for Mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Oct 4, 2024
1 parent 76c8177 commit 1f1db3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/p/pcapplusplus/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1f1db3d

Please sign in to comment.