libobs/graphics: Update libnsgif to 1.0.0#11178
Conversation
|
This could use further review, particularly on the struct changes, but generally on everything because I've never had to touch these files before. This could also use further testing. |
| ) | ||
|
|
||
| target_compile_options(libobs PRIVATE $<$<COMPILE_LANGUAGE:C,CXX>:/EHc->) | ||
| target_compile_options(libobs PRIVATE $<$<COMPILE_LANGUAGE:C,CXX>:/EHc-> /wd4244 /wd4267) |
There was a problem hiding this comment.
I'm not really a fan of disabling these warnings for all of libobs just because of a vendored dependency. Can we perhaps move it into deps/?
There was a problem hiding this comment.
We can probably try, but it will require a "bit" more work.
There was a problem hiding this comment.
To be clear, I'm not a fan of it either.
There was a problem hiding this comment.
An attempt was made:
https://github.com/RytoEX/obs-studio/tree/really-update-libnsgif-and-move
However, while libobs compiles, other projects that link to libobs that do #include <graphics/image-file.h> (obs-filters, obs-transitions, etc.) complain that they cannot find nsgif.h. I'm not sure what to do about that.
There was a problem hiding this comment.
Fixed this by using set_source_files_properties to only add the warning suppression to the libnsgif files instead of all of libobs. I still don't have the time to rework this into moving libnsgif into deps. Hopefully this change addresses the primary concern.
3599ae1 to
f42b501
Compare
|
Fixing clang-format complaint, hopefully. |
Lain-B
left a comment
There was a problem hiding this comment.
Would be nice to get this moved over to the deps dir but I don't think that it's a big deal for now, especially if we want to fix up issues for the next update.
|
I want to suggest to hide |
|
cc @Lain-B and @derrod on the breaking changes concern raised by @norihiro My initial and primary concern was working out an update to an outdated vendored dependency. If there are additional concerns, such as moving the dependency to |
f42b501 to
3ed6734
Compare
3ed6734 to
1852a17
Compare
|
Rebased and made the warning suppression more targeted. Will probably need @Lain-B to comment on the ABI breakage concern. |
Description
Update libnsgif to from some ancient version to 1.0.0.
Motivation and Context
Wanted to attempt to update this while tackling #10993.
How Has This Been Tested?
Tested on Windows 11 with an animated GIF.
Types of changes
Checklist: