Repository navigation
[x265] Add multilib feature with runtime bit-depth switching - #53168
Shen (QShen3) wants to merge 15 commits into
Conversation
|
@microsoft-github-policy-service agree |
@microsoft-github-policy-service agree |
Billy O'Neal (BillyONeal)
left a comment
There was a problem hiding this comment.
Does upstream expect playing these kinds of merge library games?
|
I really don't like the idea that build the library 3 times and merge the results into one library. But this looks like the only way to produce multi-bit-depth library according to the design.
I could remove 10bit and 12bit features and the port will be looked like this:
Or, just follow recommendation from the doc and build the multilib by default.
Billy O'Neal (@BillyONeal) Which do you think is better |
|
A patch is created to move all the logic into x265's CMakeLists.txt so that the portfile.cmake is clean now. When ENABLE_MULTILIB is set to ON, 10 bit and 12 bit static build target will be defined and do the merge in post build step. |
| endif(EXTRA_LIB) | ||
| mark_as_advanced(EXTRA_LIB EXTRA_LINK_FLAGS) | ||
|
|
||
| +# Build a single library containing the 8-bit, 10-bit and 12-bit encoders, |
There was a problem hiding this comment.
Given that this appears to implement what upstream has explicitly asked packagers to do have you submitted this upstream? I suspect that their comments will make whether this should be a feature clearer.
There was a problem hiding this comment.
Multicorewareinc/x265#955 A PR is created for upstream
|
Drafting due to check failures. |
./vcpkg x-add-version --alland committing the result.