Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,37 @@ sudo cmake --install build

See `examples/cmake-integration/` for a complete working project.

## vcpkg

### Manifest mode

If you use vcpkg in [manifest mode](https://learn.microsoft.com/en-us/vcpkg/concepts/manifest-mode), run the following from the project root after cloning:

```bash
vcpkg install
```

This reads the `vcpkg.json` manifest and resolves the `llvm` dependency (with `clang` and `tools` features).

> **Note:** h5cpp-compiler is compatible with LLVM 18, 19, and 20. vcpkg currently provides `llvm` at 18.1.6.

### Registry port

To consume `h5cpp-compiler` through a custom vcpkg registry, copy the `vcpkg/` directory into your registry under `ports/h5cpp-compiler/`:

```
ports/
h5cpp-compiler/
portfile.cmake
vcpkg.json
```

Add the port to your registry `versions/baseline.json`, then install it with:

```bash
vcpkg install h5cpp-compiler
```

## Compatibility

| h5cpp-compiler | h5cpp library |
Expand Down
18 changes: 18 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "h5cpp-compiler",
"version": "1.12.6",
"description": "Source code transformation tool for HDF5 H5CPP library",
"homepage": "https://github.com/vargalabs/h5cpp-compiler",
"license": "MIT",
"supports": "!uwp",
"$comment": "h5cpp-compiler is compatible with LLVM 18+, 19+, and 20. vcpkg provides llvm at 18.1.6.",
"dependencies": [
{
"name": "llvm",
"features": [
"clang",
"tools"
]
}
]
}
19 changes: 19 additions & 0 deletions vcpkg/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO vargalabs/h5cpp-compiler
REF "v${VERSION}"
SHA512 fa3f5da1f028c5353c70387a94bd40543a27dbcdbd9ace8e0a8666978759018ab519dd60c17b1f99120e4cd48b2ff4bbbb56778efdd92787dd4fafcf1444dc28
HEAD_REF staging
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYRIGHT.txt")
18 changes: 18 additions & 0 deletions vcpkg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "h5cpp-compiler",
"version": "1.12.6",
"description": "Source code transformation tool for HDF5 H5CPP library",
"homepage": "https://github.com/vargalabs/h5cpp-compiler",
"license": "MIT",
"supports": "!uwp",
"$comment": "h5cpp-compiler is compatible with LLVM 18+, 19+, and 20. vcpkg provides llvm at 18.1.6.",
"dependencies": [
{
"name": "llvm",
"features": [
"clang",
"tools"
]
}
]
}
Loading