|
@@ -10,6 +10,7 @@ package("pcapplusplus")
|
|
add_versions("v23.09", "f2b92d817df6138363be0d144a61716f8ecc43216f0008135da2e0e15727d35a")
|
|
add_versions("v23.09", "f2b92d817df6138363be0d144a61716f8ecc43216f0008135da2e0e15727d35a")
|
|
|
|
|
|
add_patches("v24.09", "patches/v24.09/vla.patch", "8c380468c78118b6d85f6b3856cd49c4d890fd326dde3400b8c47c01c885cef4")
|
|
add_patches("v24.09", "patches/v24.09/vla.patch", "8c380468c78118b6d85f6b3856cd49c4d890fd326dde3400b8c47c01c885cef4")
|
|
|
|
+ add_patches("v24.09", "patches/v24.09/explicit-override.patch", "d4ff15e920ea4996f6d3105e898e42d75cfab47b7e930467442ae356a361cf25")
|
|
|
|
|
|
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
|
|
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
|
|
|
|
|
|
@@ -34,6 +35,7 @@ package("pcapplusplus")
|
|
local configs = {
|
|
local configs = {
|
|
"-DPCAPPP_BUILD_EXAMPLES=OFF",
|
|
"-DPCAPPP_BUILD_EXAMPLES=OFF",
|
|
"-DPCAPPP_BUILD_TESTS=OFF",
|
|
"-DPCAPPP_BUILD_TESTS=OFF",
|
|
|
|
+ "--compile-no-warning-as-error",
|
|
}
|
|
}
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
|
|
import("package.tools.cmake").install(package, configs)
|
|
import("package.tools.cmake").install(package, configs)
|