Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian packages for building bundles w/o installing celix #635

Closed
albrecht-j opened this issue Sep 6, 2023 · 2 comments
Closed

Debian packages for building bundles w/o installing celix #635

albrecht-j opened this issue Sep 6, 2023 · 2 comments

Comments

@albrecht-j
Copy link

Hi all
is it planned to release also debian packages with the necessary libraries included to build bundles without installing the whole celix in the system?

That could be a nice feature and makes it easier to include builds for bundles in CI-Piplines.

Thanks for the feedback

Best Regards
Johannes

@PengZheng
Copy link
Contributor

PengZheng commented Sep 6, 2023

is it planned to release also debian packages with the necessary libraries included to build bundles without installing the whole celix in the system?

Currently, it is possible to select only what you need to build and install when using Conan package manager.
For example, if you only need the framework, then only the framework and utils will be built and installed.

conan create . -c tools.cmake.cmaketoolchain:generator=Ninja -b missing -o celix/*:build_framework=True

The above installation will only contain what is needed to build bundles, nothing more.
Generally speaking, you only specify what you need, and Conan takes care of everything else (including various 3rd party dependencies).
You are guaranteed to have a minimal build satisfying your requirements.
IMO, this is the easiest approach, which covers desktop usage and cross-compilation.
It allows you to prune the whole dependency tree the way you like.
For example, you can turn off any protocol you don't need in libcurl, or you can turn off libcurl entirely by -o celix/*:framework_curlinit=False.

As can be seen from conanfile.py, we have more than 40 build options.
To support debian installation, we need to decide first how many debs should there be.
Related issue: #204

I think we need to update our documentation to provide guidance for this. @pnoltes

PS: Celix 2.3.0 does not support this. Please use the latest trunk (the coming 2.4.0 release).

@PengZheng
Copy link
Contributor

If the above does not satisfy your needs, feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants