-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77b1175
commit 574f5c3
Showing
4 changed files
with
42 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
-- Disable this module by default. | ||
module_ignore() | ||
newoption { | ||
trigger = "pcap", | ||
description = "Link with libpcap for network support" | ||
} | ||
|
||
files "network.c" | ||
|
||
filter "system:windows" | ||
includedirs "../../tools/npcap/sdk/Include" | ||
defines "_WINSOCK_DEPRECATED_NO_WARNINGS" | ||
|
||
module_link_callback(function() | ||
filter "not system:windows" | ||
links "pcap" | ||
if _OPTIONS["pcap"] then | ||
defines { "LIBPCAP", "_DEFAULT_SOURCE=1" } | ||
|
||
filter "system:windows" | ||
links { "Ws2_32", "../../tools/npcap/sdk/Lib/x64/wpcap" } | ||
end) | ||
includedirs "../../tools/npcap/sdk/Include" | ||
defines "_WINSOCK_DEPRECATED_NO_WARNINGS" | ||
|
||
module_link_callback(function() | ||
filter "not system:windows" | ||
links "pcap" | ||
|
||
filter "system:windows" | ||
links { "Ws2_32", "../../tools/npcap/sdk/Lib/x64/wpcap" } | ||
end) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters