Add build2 packaging support#21
Open
gistrec wants to merge 1 commit into
Open
Conversation
Publish on cppget under the build2 `libfoo` convention as
`libgeo-utils`. The CMake / vcpkg / Conan / xrepo name stays
`geo-utils-cpp`. The header layout, namespace, and `#include
<geo/...>` API are unchanged.
Adds manifest, root and per-directory buildfiles, and the
build/{bootstrap,root}.build scaffolding for a binless lib
target; updates README to explain the dual naming; tweaks
.gitignore so CMake artifacts under build/ stay ignored while
the new build2 metadata files are tracked.
Closes #18
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21 +/- ##
=======================================
Coverage 98.19% 98.19%
=======================================
Files 20 20
Lines 499 499
Branches 88 88
=======================================
Hits 490 490
Misses 1 1
Partials 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
manifest, rootbuildfile,build/bootstrap.build,build/root.build,include/buildfile,include/geo/buildfile). The library is published on cppget under the build2libfooconvention aslibgeo-utils; the namegeo-utils-cppis preserved everywhere else (GitHub project, CMake, vcpkg, Conan, xrepo).lib{geo-utils}as a binless target withcxx.export.poptions = "-I$src_root/include"so consumers keep using#include <geo/...>— no API or layout change.libgeo-utilsvsgeo-utils-cppnaming..gitignore: keep CMake build artifacts underbuild/ignored while tracking the new build2 metadata files (build/bootstrap.build,build/root.build).Closes #18.
Test plan
bdep init -C ../build-gcc cc config.cxx=g++thenbsucceeds from the repo root.b install config.install.root=/tmp/plands headers at/tmp/p/include/geo/*.hpp, including/tmp/p/include/geo/detail/math.hpp.depends: libgeo-utils ^1.0.1andimport libs = libgeo-utils%lib{geo-utils}builds and links against the installed library.