Skip to content

Commit

Permalink
[boost-odeint] Add feature adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Osyotr committed Oct 7, 2024
1 parent e4070cb commit 8a7f980
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ports/boost-odeint/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ vcpkg_check_features(
FEATURE_OPTIONS
FEATURES
"mpi" BOOST_ENABLE_MPI
INVERTED_FEATURES
"adapters" BOOST_NUMERIC_ODEINT_NO_ADAPTORS
)
23 changes: 19 additions & 4 deletions ports/boost-odeint/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
"name": "boost-cmake",
"version>=": "1.86.0"
},
{
"name": "boost-compute",
"version>=": "1.86.0"
},
{
"name": "boost-config",
"version>=": "1.86.0"
Expand Down Expand Up @@ -83,13 +79,32 @@
"version>=": "1.86.0"
}
],
"default-features": [
"adapters"
],
"features": {
"adapters": {
"description": "Build with adapters",
"dependencies": [
{
"name": "boost-compute",
"version>=": "1.86.0"
}
]
},
"mpi": {
"description": "Support parallelization with MPI",
"dependencies": [
{
"name": "boost-mpi",
"version>=": "1.86.0"
},
{
"name": "boost-odeint",
"features": [
"adapters"
],
"version>=": "1.86.0"
}
]
}
Expand Down
7 changes: 6 additions & 1 deletion scripts/boost/generate-ports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,15 @@ $portData = @{
};
"boost-mysql" = @{ "dependencies" = @("openssl"); };
"boost-odeint" = @{
"default-features" = @("adapters");
"features" = @{
"adapters" = @{
"description" = "Build with adapters";
"dependencies" = @("boost-compute");
}
"mpi" = @{
"description" = "Support parallelization with MPI";
"dependencies" = @("boost-mpi");
"dependencies" = @("boost-mpi", @{ "name" = "boost-odeint"; "features" = @("adapters") });
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion versions/b-/boost-odeint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "4527453f0f9252b3c16d3db95b2ba2824bc89751",
"git-tree": "1f28b87cca93e27eeba0fb406a6e1027d5dc2549",
"version": "1.86.0",
"port-version": 0
},
Expand Down

0 comments on commit 8a7f980

Please sign in to comment.