Stage hello via cmake-utils and generate packages artifacts#4
Open
alexadereyko wants to merge 4 commits into
Open
Stage hello via cmake-utils and generate packages artifacts#4alexadereyko wants to merge 4 commits into
alexadereyko wants to merge 4 commits into
Conversation
369e60c to
55e31f1
Compare
Use opendaq-cmake-utils to generate the package name and write the staging sidecar. Add a variable to enable 32-bit compilation on Linux.
module depends on core, so the build verifies compilation and linkage against a core staging via find_package / CMAKE_PREFIX_PATH.
With the flag on, the root skips building core in-tree and the module resolves hello-core via find_package from CMAKE_PREFIX_PATH; off keeps the in-tree monolith. The package name is overridden via OPENDAQ_PACKAGE_NAME_OVERRIDE; otherwise it defaults to the lowercase project name.
Tag each project's install with COMPONENT core/module so a staging build can scope the tarball to one component. The reusable's staging preset turns on CPACK_ARCHIVE_COMPONENT_INSTALL and picks the component; the dev umbrella stays monolithic. Per-component archive and DEB names resolve to OPENDAQ_PACKAGE_NAME so the caller pairs an override with its component.
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
Adapt the
hellotest project into the debug/verification vehicle for the staging machinery — it must produce the same shapes openDAQ does (component stagings + native installers, a module built against a core staging).Changes
hello-core+hello-module.hello-coreis a shared library that installs an exportedfind_packageconfig;hello-moduledepends on it — mirroring core ↔ module.HELLO_USE_INSTALLED_COREflag. Off → core built in-tree (dev monolith); on → the module resolveshello-coreviafind_packagefrom a staging onCMAKE_PREFIX_PATH(the build-against-staging path).core/module, so a build scopes its staging/installer to one component.opendaq-cmake-utils. FetchContent of the packaging utils; the staging tarball +staging-meta.jsoncome fromopendaq_generate_package_name/opendaq_write_staging_meta.OPENDAQ_PACKAGE_NAME(no redundant-<component>suffix); the DEB maintainer is set.