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

Make native dialogs optional. #24

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

JoelLinn
Copy link
Contributor

Native dialogs link against GTK+ which is about 8MB of shared lib dependencies.
If linking against big GTK+ library is undesired (In my case I would have to redistribute the GTK libs along the Python package on PyPi which itself is only about 1.5MB) this PR allows to disable Native dialogs.

I added the option MAHI_GUI_NATIVE_DIAGS which defines MAHI_NATIVE_DIAGS in the processor if set to ON.
Let me now what you think. E.g. if you prefer a different option name I can rebase.

If linking against big GTK+ library is undesired.
@JoelLinn JoelLinn force-pushed the feature-optional-native branch from 2e0feef to 44b43a2 Compare June 16, 2020 17:13
@JoelLinn
Copy link
Contributor Author

Is there any issue with this PR?
Apart from building a slim python plugin I believe this would also aid in using mahi-gui on embedded devices for example.

@epezent
Copy link
Member

epezent commented Aug 4, 2020

Joel, sorry for the delay. I haven't really had much time to look at this lately. I don't see any real issues with this. Merging

@epezent epezent merged commit 423565c into mahilab:master Aug 4, 2020
@JoelLinn JoelLinn deleted the feature-optional-native branch September 15, 2020 15:28
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