|
@@ -6,10 +6,20 @@ package("boost_reflect")
|
|
add_urls("https://github.com/boost-ext/reflect/archive/refs/tags/$(version).tar.gz",
|
|
add_urls("https://github.com/boost-ext/reflect/archive/refs/tags/$(version).tar.gz",
|
|
"https://github.com/boost-ext/reflect.git")
|
|
"https://github.com/boost-ext/reflect.git")
|
|
|
|
|
|
|
|
+ add_versions("v1.2.4", "8844faf7e282d9b9841fdee89b3ccfa80a800d7c35b6575c5f64cfa5946e0854")
|
|
add_versions("v1.2.3", "583fe281c3b83f403b7fb18389e64bacc3ca0b30683d550f2ad6159cc0ebb6be")
|
|
add_versions("v1.2.3", "583fe281c3b83f403b7fb18389e64bacc3ca0b30683d550f2ad6159cc0ebb6be")
|
|
add_versions("v1.1.1", "49b20cbc0e5d9f94bcdc96056f8c5d91ee2e45d8642e02cb37e511079671ad48")
|
|
add_versions("v1.1.1", "49b20cbc0e5d9f94bcdc96056f8c5d91ee2e45d8642e02cb37e511079671ad48")
|
|
|
|
|
|
- on_install("linux", function (package)
|
|
|
|
|
|
+ if on_check then
|
|
|
|
+ on_check("windows", function (package)
|
|
|
|
+ import("core.base.semver")
|
|
|
|
+
|
|
|
|
+ local vs_toolset = package:toolchain("msvc"):config("vs_toolset")
|
|
|
|
+ assert(vs_toolset and semver.new(vs_toolset):minor() >= 30, "package(boost_reflect) require vs_toolset >= v143")
|
|
|
|
+ end)
|
|
|
|
+ end
|
|
|
|
+
|
|
|
|
+ on_install("windows", "mingw", "linux", function (package)
|
|
os.cp("reflect", package:installdir("include"))
|
|
os.cp("reflect", package:installdir("include"))
|
|
end)
|
|
end)
|
|
|
|
|