-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[cherry-pick] add CMake's option for bindings #5389
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
Conversation
AWS CodeBuild CI Report
|
AWS CodeBuild CI Report
|
| if(WITH_PYTHON) | ||
| set(WITH_PYTHON_BINDING ON) | ||
| else() | ||
| #message(FATAL_ERROR "Could not found a suitable python interpreter") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a cherry-pick, I think we should address review comments on master first to make sure things don't get de-synced
|
|
||
| option(BUILD_JAVA_BINDING "build java binding" ON) | ||
| if(NOT BUILD_JAVA_BINDING OR NOT WITH_C_BINDING) | ||
| set(WITH_JAVA_BINDING OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a line
message(WARNING "Java depends on C binding, but C binding is not enabled")
or even promote WARNING to FATAL_ERROR since this might cause unexpected java binding missing?
| if(GO_EXECUTABLE AND NOT WIN32) | ||
| set(WITH_GO ON) | ||
| option(BUILD_GO_BINDING "build go binding" ON) | ||
| if(NOT BUILD_GO_BINDING OR NOT BUILD_C_BINDING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar above.
| set(GEM_COMMAND ${RUBY_EXECUTABLE} ${GEM_EXECUTABLE}) | ||
| set(WITH_RUBY ON) | ||
| option(BUILD_RUBY_BINDING "build ruby binding" ON) | ||
| if(NOT BUILD_RUBY_BINDING OR NOT BUILD_C_BINDING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar above
xis19
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There could be improvements but since this is a cherry-pick, the changes can be addressed in another commit.
Thanks for the merge, I will add the improvements in another commit 👍 |
Cherry-pick of #5318, relating to the issue #5218.
This commit is adding more CMake options to disable bindings if needed. This will greatly help packaging the upcoming
7.0release for source-based distributions as it allow to:go getduring build time which cannot be done in a sandbox.Options are by default
ONto avoid messing with existing CIs.Verification
Verified locally with Docker:
Code-Reviewer Section
The general guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branchormasterif this is the youngest branch)