-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[faudio] new port #37157
[faudio] new port #37157
Conversation
Please tell me what I'm doing wrong here. |
9dc0375
to
f8f6947
Compare
I see some of the problems now, it will take me a bit more time to sort everything out. |
102b74c
to
e30f910
Compare
@jimwang118 this is ready for review now, the remaining two CI problems I can do nothing about unless you have ideas. Thank you. |
abd5202
to
a518e5f
Compare
Can faudio be compiled on Android or osx? If compilation on these platforms is supported, compilation errors need to be resolved. If it is not supported, you can add |
I will first convert your PR to a draft, wait for you to fix all CI errors, and then click "ready for review". |
If you look at the build logs for the CI failures, they are because vcpkg does not like the version string, not actual build failures. I can't do anything about that. |
Yes, version update requires running the command: "./vcpkg x-add-version faudio --overwrite-version". |
I did run that, it is in the checklist. I just ran it again too, but it is the same. |
When I installed it on local arm64-osx, the same error message appeared. There should be a problem with the code.
|
@jimwang118 thank you very much for that info, this means I did not properly implement clang support for my It would have been nice if the CI build log showed me this error instead of that stuff about an unparseable version. I will fix the Does I will need to do a followup to my upstream PR. |
2f00739
to
1549489
Compare
@jimwang118 I disabled clang in my I will check with the upstream developers to check if disabling alignment is safe to do and get back to you. |
Upstream will decide on the clang issue over the next few days, I will implement it and replace the patch here. If you would like to merge this faster, I can disable the triplets I believe this is the only outstanding issue. For reference my folllowup PR and discussion is here: |
I fixed the alignment patch, this should be ready to go now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You must update versions
after committing all changes to ports
. (But you can amend the last commit.)
Unfortunately, the CMake config and the pc file don't reflect the transitive sdl2 requirement for static linkage.
cmake/config.cmake.in
needs
if(NOT "@PLATFORM_WIN32@")
include(CMakeFindDependencyMacro)
find_dependency(SDL2 CONFIG)
endif()
after @PACKAGE_INIT@
.
cmake/FAudio.pc.in
needs
Requires.private: sdl2
but only for non-win32 - maybe sdl2
must be injected via a new variable e.g. @PC_REQUIRES_PRIVATE@
.
FTR the usage suggest by vcpkg's heuristic should be good enough:
|
eecd624
to
9b8ccf9
Compare
Add new port FAudio, an "accuracy-focused XAudio reimplementation for open platforms". Use the PLATFORM_WIN32 cmake flag on Windows, otherwise use the sdl2 dependency. MSVC build PR is here: FNA-XNA/FAudio#333 , followup PR to fix alignment is here: FNA-XNA/FAudio#334 , and another followup for the SDL2 dependency: FNA-XNA/FAudio#335 , the MSYS2 package is here: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-faudio/PKGBUILD . Signed-off-by: Rafael Kitover <[email protected]>
@dg0yt thank you very much for your feedback, I have fixed all the issues you flagged as you specified. Your SDL2 dependency patch was merged upstream and is included here. |
Usage test pass with following triplets:
|
Any outstanding issues I need to take care of or can this be merged now? |
You just have to wait for it to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched to a commit containing all 3 of the patches and removed them from here so it's clear we are doing exactly as upstream wishes.
Thanks for the new port!
Add new port FAudio, an "accuracy-focused XAudio reimplementation for
open platforms".
Use the PLATFORM_WIN32 cmake flag on Windows, otherwise use the sdl2
dependency.
MSVC build PR is here:
FNA-XNA/FAudio#333
MSYS2 package is here:
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-faudio/PKGBUILD
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.