|
@@ -4,18 +4,19 @@ package("npcap_sdk")
|
|
|
|
|
|
set_urls("https://npcap.com/dist/npcap-sdk-$(version).zip")
|
|
set_urls("https://npcap.com/dist/npcap-sdk-$(version).zip")
|
|
|
|
|
|
|
|
+ add_versions("1.15", "52c7b9fb4abee3ad9fe739bb545c3efe77b731c8e127122bdf328eafdae3ed4f")
|
|
add_versions("1.13", "dad1f2bf1b02b787be08ca4862f99e39a876c1f274bac4ac0cedc9bbc58f94fd")
|
|
add_versions("1.13", "dad1f2bf1b02b787be08ca4862f99e39a876c1f274bac4ac0cedc9bbc58f94fd")
|
|
add_versions("1.12", "24c4862723f61d28048a24e10eb31d2269b2152a5762410dd1caffc041871337")
|
|
add_versions("1.12", "24c4862723f61d28048a24e10eb31d2269b2152a5762410dd1caffc041871337")
|
|
|
|
|
|
set_policy("package.precompiled", false)
|
|
set_policy("package.precompiled", false)
|
|
|
|
|
|
- on_install("windows", "mingw", "msys", function (package)
|
|
|
|
- if package:is_plat("mingw") and package:version():eq("1.13") then
|
|
|
|
- io.replace("Include/Packet32.h", "_Post_invalid_", "", {plain = true})
|
|
|
|
|
|
+ on_install("windows", "mingw", "msys", "cygwin", function (package)
|
|
|
|
+ if not package:is_plat("windows") and package:version():le("1.15") then
|
|
|
|
+ package:add("defines", "_Post_invalid_=")
|
|
end
|
|
end
|
|
|
|
|
|
os.cp("Include/*", package:installdir("include"))
|
|
os.cp("Include/*", package:installdir("include"))
|
|
- if package:is_arch("arm64") then
|
|
|
|
|
|
+ if package:is_arch("arm64.*", "aarch64") then
|
|
os.cp("Lib/ARM64/*", package:installdir("lib"))
|
|
os.cp("Lib/ARM64/*", package:installdir("lib"))
|
|
elseif package:is_arch("x86") or package:is_arch("i386") then
|
|
elseif package:is_arch("x86") or package:is_arch("i386") then
|
|
os.cp("Lib/*.lib", package:installdir("lib"))
|
|
os.cp("Lib/*.lib", package:installdir("lib"))
|