Skip to content

Commit 814f929

Browse files
authored
Merge branch 'xmake-io:dev' into dev
2 parents 175942f + d55147a commit 814f929

File tree

9 files changed

+36
-19
lines changed

9 files changed

+36
-19
lines changed

packages/a/alembic/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package("alembic")
66
add_urls("https://github.com/alembic/alembic/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/alembic/alembic.git")
88

9+
add_versions("1.8.10", "06c9172faf29e9fdebb7be99621ca18b32b474f8e481238a159c87d16b298553")
910
add_versions("1.8.9", "8c59c10813feee917d262c71af77d6fa3db1acaf7c5fecfd4104167077403955")
1011
add_versions("1.8.8", "ba1f34544608ef7d3f68cafea946ec9cc84792ddf9cda3e8d5590821df71f6c6")
1112
add_versions("1.8.7", "6de0b97cd14dcfb7b2d0d788c951b6da3c5b336c47322ea881d64f18575c33da")

packages/a/aws-c-http/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package("aws-c-http")
66
add_urls("https://github.com/awslabs/aws-c-http/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/awslabs/aws-c-http.git")
88

9+
add_versions("v0.10.7", "ce9e71c3eae67b1c6c0149278e0d0929a7d928c3547de64999430c8592864ad4")
910
add_versions("v0.10.6", "0e513d25bc49a7f583d9bb246dabbe64d23d8a2bd105026a8f914d05aa1df147")
1011
add_versions("v0.10.1", "1550f7bf9666bb8f86514db9e623f07249e3c53e868d2f36ff69b83bd3eadfec")
1112
add_versions("v0.10.0", "f7881e2f9af1a2e114b4147be80d70480f06af2b9cd195e8448afb750c74b1ae")

packages/c/clip/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package("clip")
66
add_urls("https://github.com/dacap/clip/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/dacap/clip.git")
88

9+
add_versions("v1.13", "0d07f80bc48c16d049778501bfb4a58d4f5c4087fd99a53b0640d64dc3b86868")
910
add_versions("v1.12", "54e96e04115c7ca1eeeecf432548db5cd3dddb08a91ededb118adc31b128e08c")
1011
add_versions("v1.11", "047d43f837adffcb3a26ce09fd321472615cf35a18e86418d789b70d742519dc")
1112

packages/c/croaring/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package("croaring")
66
add_urls("https://github.com/RoaringBitmap/CRoaring/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/RoaringBitmap/CRoaring.git")
88

9+
add_versions("v4.4.2", "11cc5d37b2d719e02936c71db83d3a5d1f3d27c59005348f4ee6417a63617b77")
910
add_versions("v4.4.0", "5fd485bfdb83261143e6d0ad8967bf779cf99eda6747ac198d861f3b8e4a1e46")
1011
add_versions("v4.3.12", "9f1602d7ff83e84ce0a5928129bb957a1eeacd3b092b39e21f5f0b931682b8d6")
1112
add_versions("v4.3.6", "d9c63e6fa06630cd626be004a226bea15eb4acba6740a46f58c6b189fa5d49b3")

packages/g/g2o/xmake.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ package("g2o")
77
end})
88
add_urls("https://github.com/RainerKuemmerle/g2o.git")
99
add_versions("2020.12.23", "20af80edf8fd237e29bd21859b8fc734e615680e8838824e8b3f120c5f4c1672")
10+
add_versions("2024.12.28", "d691ead69184ebbb8256c9cd9f4121d1a880b169370efc0554dd31a64802a452")
1011

11-
add_deps("cmake", "eigen")
12+
add_deps("cmake", "eigen <5.0")
13+
14+
add_links("g2o_solver_slam2d_linear", "g2o_solver_structure_only", "g2o_solver_dense", "g2o_solver_eigen", "g2o_solver_pcg", "g2o_types_data", "g2o_types_icp", "g2o_types_sim3", "g2o_types_sba", "g2o_types_sclam2d", "g2o_types_slam2d_addons", "g2o_types_slam2d", "g2o_types_slam3d_addons", "g2o_types_slam3d", "g2o_core", "g2o_stuff", "g2o_opengl_helper", "g2o_ext_freeglut_minimal")
1215

1316
on_install("linux", "windows", "macosx", function (package)
1417
local configs = {"-DG2O_BUILD_APPS=OFF", "-DG2O_BUILD_EXAMPLES=OFF"}
@@ -28,5 +31,5 @@ package("g2o")
2831
g2o::SparseOptimizer optimizer;
2932
optimizer.setVerbose(false);
3033
}
31-
]]}, {configs = {languages = "c++14"}}))
34+
]]}, {configs = {languages = package:version():ge("2023.08.06") and "c++17" or "c++14"}}))
3235
end)

packages/l/lzav/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package("lzav")
77
add_urls("https://github.com/avaneev/lzav/archive/refs/tags/$(version).tar.gz",
88
"https://github.com/avaneev/lzav.git")
99

10+
add_versions("5.3", "1d66d3702b8b380fccbe8aeef24e59e36e79468ecc0e7a18cdfe105bde6c3f5d")
1011
add_versions("4.23", "f3ea9cfbbc99da786ff6c336ea43cc629502638d457b07e64c182d4ab98c5c09")
1112
add_versions("4.19", "e19e093f465b69906aec109ab78f5a38c00fee1d21c61c013d7b185da33911dc")
1213
add_versions("4.9", "460aaed16cce0ce1d6af03cf20db1dd9566adef7e1cbc8529ce1b8653ede0412")

packages/o/omath/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package("omath")
66
add_urls("https://github.com/orange-cpp/omath/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/orange-cpp/omath.git", {submodules = false})
88

9+
add_versions("v4.4.0", "46fe67d0524c643b28892d2c27b33c5bb4941b0cd5393390cc17e11ae5d31741")
910
add_versions("v4.3.0", "e21c2e1ff22360715ef6dd231e9f0ac506256b786a246061fac2dfd4cd37d20d")
1011
add_versions("v4.2.0", "f1482c5fd0de0ed26b8197c51e4eb59425c541d4819a3ed6f9639aef251b4a53")
1112
add_versions("v4.1.0", "df5b6774a747ef91b8a34b23db774e92ecba3d3907cc060e36985ec2bd31c6d5")

packages/o/openmvs/xmake.lua

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,44 @@ package("openmvs")
33
set_description("open Multi-View Stereo reconstruction library")
44
set_license("AGPL-3.0")
55

6-
add_urls("https://github.com/cdcseacave/openMVS/archive/refs/tags/v$(version).tar.gz")
6+
add_urls("https://github.com/cdcseacave/openMVS/archive/refs/tags/$(version).tar.gz",
7+
"https://github.com/cdcseacave/openMVS.git")
78

8-
add_versions("2.3.0", "ac7312fb71dbab18c5b2755ad9ac3caa40ec689f6f369c330ca73c87c1f34258")
9+
add_versions("v2.3.0", "ac7312fb71dbab18c5b2755ad9ac3caa40ec689f6f369c330ca73c87c1f34258")
910

10-
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
11+
if is_plat("windows") then
12+
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
13+
end
1114

1215
add_configs("ceres", {description = "Enable CERES optimization library", default = false, type = "boolean"})
1316
add_configs("cuda", {description = "Enable CUDA library", default = false, type = "boolean"})
1417
add_configs("openmp", {description = "Enable OpenMP library", default = true, type = "boolean"})
1518
add_configs("python", {description = "Enable Python library bindings", default = false, type = "boolean"})
1619

17-
add_deps("cmake", "eigen", "glew", "opencv", "cgal", "vcglib", "zstd")
20+
add_deps("cmake", "cgal", "eigen <5.0", "glew", "opencv", "vcglib", "zstd")
1821
add_deps("boost", {configs = {iostreams = true, container = true, graph=true, program_options = true, serialization = true, thread = true, zlib = true, zstd = true}})
1922

20-
on_load("windows", function (package)
21-
package:add("defines", "BOOST_ALL_NO_LIB") -- disable boost auto-linking
22-
if package:toolchain("msvc") then package:add("cxxflags", "/Zc:__cplusplus") end -- enable msvc __cplusplus
23+
if on_check then
24+
on_check("linux", function (package)
25+
assert(not package:has_tool("cxx", "clang"), "Linux Clang is not supported yet.")
26+
end)
27+
end
28+
29+
add_includedirs("include", "include/OpenMVS")
30+
add_linkdirs("lib/OpenMVS")
31+
add_links("MVS", "Math", "IO", "Common")
32+
on_load(function (package)
33+
if package:has_tool("cxx", "cl") then
34+
package:add("cxxflags", "/Zc:__cplusplus")
35+
end
2336

2437
if package:config("ceres") then package:add("deps", "ceres-solver") end
2538
if package:config("cuda") then package:add("deps", "cuda") end
2639
if package:config("openmp") then package:add("deps", "openmp") end
2740
if package:config("python") then package:add("deps", "python") end
2841
end)
2942

30-
on_install("windows|x64", "windows|x86", function (package)
43+
on_install("windows|!arm64", "linux", function (package)
3144
io.replace("CMakeLists.txt", "# Project-wide settings", [[
3245
# Project-wide settings
3346
find_package(PkgConfig REQUIRED)
@@ -44,17 +57,11 @@ package("openmvs")
4457
"-DOpenMVS_ENABLE_TESTS=OFF",
4558
}
4659
import("package.tools.cmake").install(package, configs)
47-
48-
package:add("linkdirs", "lib/OpenMVS")
49-
local libs = os.files(package:installdir("lib/OpenMVS/*.lib"))
50-
for _, filepath in ipairs(libs) do
51-
package:add("links", path.basename(filepath))
52-
end
5360
end)
5461

5562
on_test(function (package)
5663
assert(package:check_cxxsnippets({test = [[
57-
#include <openMVS/MVS.h>
64+
#include "MVS.h"
5865
using namespace MVS;
5966
void test() {
6067
SEACAVE::cListTest<true>(100);
@@ -63,5 +70,5 @@ package("openmvs")
6370
SEACAVE::TestRayTriangleIntersection<float>(1000);
6471
SEACAVE::TestRayTriangleIntersection<double>(1000);
6572
}
66-
]]}, {configs = {languages = "c++11"}}))
73+
]]}, {configs = {languages = "c++14"}}))
6774
end)

packages/r/rocksdb/xmake.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package("rocksdb")
66
add_urls("https://github.com/facebook/rocksdb/archive/refs/tags/$(version).tar.gz",
77
"https://github.com/facebook/rocksdb.git")
88

9+
add_versions("v10.7.5", "a9948bf5f00dd1e656fc40c4b0bf39001c3773ad22c56959bdb1c940d10e3d8d")
910
add_versions("v10.5.1", "7ec942baab802b2845188d02bc5d4e42c29236e61bcbc08f5b3a6bdd92290c22")
1011
add_versions("v10.4.2", "afccfab496556904900afacf7d99887f1d50cb893e5d2288bd502db233adacac")
1112
add_versions("v10.0.1", "3fdc9ca996971c4c039959866382c4a3a6c8ade4abf888f3b2ff77153e07bf28")
@@ -100,5 +101,5 @@ package("rocksdb")
100101
options.create_if_missing = true;
101102
rocksdb::Status status = rocksdb::DB::Open(options, "./test", &db);
102103
}
103-
]]}, {configs = {languages = "c++17"}, includes = "rocksdb/db.h"}))
104+
]]}, {configs = {languages = package:version():ge("10.7.0") and "c++20" or "c++17"}, includes = "rocksdb/db.h"}))
104105
end)

0 commit comments

Comments
 (0)