Skip to content

Add more cmake options #5218

@PierreZ

Description

@PierreZ

I'm working on packaging FoundationDB for Exherbo, an source based Linux distribution. My goal is to create a package with multiples options(similar to USE flags in Gentoo), to allow developers to carefully choose what they need, for example:

  • using the client option will build the C API,
  • using the server option will build fdb{server,monitor,backup}),
  • using the systemd option will a systemd service,
  • using the java-bindings option will build the java-bindings,
  • and so on...

Currently, when pulling the master branch, almost everything is build by default, resulting in a lot of compile time and needed dependencies why may not be necessary for the end user. The only dependencies that can be removed are:

Adding more cmake options will allow users to carefully select what they want to build. This will also lower compile time in certain cases and ease package creation.

I was thinking adding options to:

  • the bindings,
  • fdbclient,
  • fdbserver,
  • fdbcli,
  • fdbmonitor/fdbservice,
  • fdbbackup

Most of these bindings targets already have boolean, which can be easily exported as cmake options. I would like to do the same for binaries as well, to allow building only the C API for example.

The new options will have TRUE as a default for compatibility with the current builds.

Are you interested in such a contribution? May it also target the release-7.0 branch?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions