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

Add BUILD_DEBIAN_PACKAGE option for Debian package support #6982

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meetgandhi-dev
Copy link

Introduced the BUILD_DEBIAN_PACKAGE CMake option to enable building a Debian package for the library. When this option is enabled and the host system supports Debian, the library will be packaged accordingly.

Usage:
To enable debian package building:
`cmake -DBUILD_DEBIAN_PACKAGE=ON <other_config_options> ..

To build debian package:
make package
or
cpack

Type

  • Bug fix (non-breaking change which fixes an issue): Fixes #
  • New feature (non-breaking change which adds functionality). Resolves #
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) Resolves #

Motivation and Context

This feature simplifies installation by allowing users to generate a Debian package directly through CMake, adhering to standard packaging conventions and enabling seamless integration with package management tools like apt. By streamlining the development workflow, we empower developers to focus on feature enhancement while encouraging community contributions and customisation. Overall, this initiative broadens our library's reach and strengthens its position within the open-source ecosystem, making it more user-friendly and accessible.

Checklist:

  • I have run python util/check_style.py --apply to apply Open3D code style
    to my code.
  • This PR changes Open3D behavior or adds new functionality.
    • Both C++ (Doxygen) and Python (Sphinx / Google style) documentation is
      updated accordingly.
    • I have added or updated C++ and / or Python unit tests OR included test
      results
      (e.g. screenshots or numbers) here.
  • I will follow up and update the code if CI fails.
  • For fork PRs, I have selected Allow edits from maintainers.

Here is the summary of different outouts:

$ cmake -DBUILD_DEBIAN_PACKAGE=ON ..

configure.log

cpack

$ cpack
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: Open3D
CPack: - Install project: Open3D []
CPack: Create package
CPackDeb: - Generating dependency list
CPack: - package: /home/meet/Open3D/build/package/open3d_0.18.0_amd64.deb generated.

Install manifests:

install_manifest.txt

Introduced the `BUILD_DEBIAN_PACKAGE` CMake option to enable building a Debian package for the library.
When this option is enabled and the host system supports Debian, the library will be packaged accordingly.

Usage:
To enable debian package building:
`cmake -DBUILD_DEBIAN_PACKAGE=ON <other_config_options> ..

To build debian package:
`make package`
or
`cpack`

Signed-off-by: Meet Gandhi <meet.gandhi@einfochips.com>
Copy link

update-docs bot commented Sep 23, 2024

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@ssheorey ssheorey self-requested a review September 23, 2024 23:23
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

Successfully merging this pull request may close these issues.

1 participant