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

[ATSPI] Some house-keeping changes #18

Merged
merged 2 commits into from
Nov 23, 2023
Merged

[ATSPI] Some house-keeping changes #18

merged 2 commits into from
Nov 23, 2023

Conversation

elima
Copy link
Collaborator

@elima elima commented Nov 21, 2023

  • Silence a compiler warning due to assigning a pid (signed) to an unsigned, in linux_utils.cc.

  • Add feature flag for python bindings too.

Similar to what we did for NodeJS, we put the python3 bindings under a flag that is ON by default, so that users that don't need this binding are not annoyed by the dependency.

Now swig is required and imported only if we have either Python or NodeJS bindings ON.

The README file was updated accordingly.

Similar to what we did for NodeJS, we put the python3 bindings under a
flag that is ON by default, so that users that don't need this binding
are not annoyed by the dependency.

Now swig is required and imported only if we have either Python or NodeJS
bindings ON.

The README file was updated accordingly.
@elima elima requested a review from spectranaut November 21, 2023 11:51
@elima elima self-assigned this Nov 21, 2023
Copy link
Collaborator

@alice alice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

option(
ATSPI_PYTHON_MODULE
"Build Python bindings (requires swig and python3)"
ON
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As someone whose first exposure to CMake is this project: I assume if we wanted to avoid passing the command line flag to disable building this each time, we could just make a local edit to this file changing this line to OFF? Are there any other ways to change the default locally?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, cmake options are cached (see CMakeCache.txt in build dir), so you only need to specify the flags once. Unless you are passing --fresh option (or cleaning the cmake cache somehow).

I suppose we could also add an environment variable that overrides the default flags, if you are doing constant re-fresh of cmake while working on swift, and it is annoying enough to have to pass the options every time. It would be a simple change.

@elima elima merged commit 1d00824 into main Nov 23, 2023
@elima elima deleted the house-keeping branch November 23, 2023 08:54
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.

2 participants