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

Dependency Update: webkit2gtk4.0 -> webkit2gtk4.1 #1404

Closed
wants to merge 1 commit into from

Conversation

tdug
Copy link

@tdug tdug commented Jun 25, 2024

Addresses #1377

I'm not knowledgeable enough with C++/CMake for it to be obvious to me how to allow either version of this dependency. Would love some feedback if this is possible so I don't break any builds that cannot install webkit2gtk-4.1 for some reason.

This was a simple find&replace. I'm not sure if there's anything else to update here.

Choose a reason for hiding this comment

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

According to this very doc v4.1 is already the standard as it says on older systems you can use 4.0.

Choose a reason for hiding this comment

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

I think you need to revisit this PR. You can see in the code below that it is already pulling v4.1 with v4.0 as a fallback, but your change eliminates the fallback and doesn't seem to have any benefit.

Copy link
Author

Choose a reason for hiding this comment

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

Oh you're right. I just did a naive find and replace here. I'll update this on my next revision.

Choose a reason for hiding this comment

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

I've actually been digging into this myself in a JUCE 6 based project today. I found I also needed to swap some code out in the jucer_ProjectExporter.cpp file, not sure if it's relevant in the latest JUCE but I'll leave it here in case you need it.

    if (isWebBrowserComponentEnabled (project) && type == PackageDependencyType::compile)
    {
		if (library.open ("libwebkit2gtk-4.1.so"))
			packages.add ("webkit2gtk-4.1");
        else
			packages.add ("webkit2gtk-4.0");
			
        packages.add ("gtk+-x11-3.0");
    }

@tdug
Copy link
Author

tdug commented Jul 12, 2024

@davidhealey - I appreciate your feedback on this PR. I think this feature is included in a more pragmatic way in the latest develop branch. I'm closing this PR because of this.

@tdug tdug closed this Jul 12, 2024
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