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

Update to M93 #3781

Merged
merged 14 commits into from
Sep 3, 2021
Merged

Update to M93 #3781

merged 14 commits into from
Sep 3, 2021

Conversation

amaitland
Copy link
Member

Issues:

Summary:

CEF Now Requires VS2019 to build the wrapper, there are also changes required as the headers have been upgraded.

Changes: [specify the structures changed]

  • Build .Net 4.5.2 projects using VS2019
  • Implement custom reference counting as VC++ doesn't like using atomic
  • Widewine is now downloaded automatically and the methods to load it manually have been removed (Remove Cef.RegisterWidevineCdm #3767)

How Has This Been Tested?
Unit tests pass though only for .Net 4.5.2 projects as the Net Core/Net 5 projects aren't building yet.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Updated documentation

Checklist:

  • Tested the code(if applicable)
  • Commented my code
  • Changed the documentation(if applicable)
  • New files have a license disclaimer
  • The formatting is consistent with the project (project supports .editorconfig)

TODO:

  • AppVeyor currently isn't building both solutions

@amaitland amaitland added this to the 93.1.x milestone Aug 30, 2021
@AppVeyorBot
Copy link

@campersau
Copy link
Contributor

It seems that the tests are hanging, switching to dotnet test also for the netframework version seems to work. (I had the same issue with netcore last year see #3214)

See https://ci.appveyor.com/project/campersau/cefsharp/builds/40570216 and commit campersau@c229527 which also includes a working matrix build for both solutions. (I disabled the deploy as I haven't configured it on my appveyor.)

@amaitland
Copy link
Member Author

Thanks. I was thinking we could probably use less resources and build both together.

Will keep this as a plan B.

I'll switch to dotnet test and see how that goes.

@campersau
Copy link
Contributor

Building both at once also works with a little fix see https://ci.appveyor.com/project/campersau/cefsharp/builds/40586025 and campersau@43d67ab

@amaitland
Copy link
Member Author

Thanks, very helpful.

…4577.15

Compiles but doesn't run as IMPLEMENT_REFCOUNTING implementation uses atomic which
forces the VC++ compiler to compile as native which doesn't work for our managed ref classes.

Added a dummy ref counting implementation to each class until I can get a new working template.
Possibly backport the old ref counting implementation
This is a breaking change. CEF will now automatically download the Widevine CDM component

Resolves #3767
… CEF UI Thread

Avoid having to use cef_callback.h which was causing problems for x86 builds
Potentially have to backport the implementation from prior to CEF upgrading
Macro isn't yet implemented, basic project compiles now though so it's just a matter of backporting the ref counting implementation
Will look at fixing the build matrix later
Now that we require a min of VS2019 to build there's no need for a custom compiler package
@amaitland amaitland marked this pull request as ready for review September 3, 2021 00:47
@amaitland amaitland merged commit d350cad into master Sep 3, 2021
@amaitland amaitland deleted the upgrade/93 branch September 3, 2021 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants