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
[libilbc] New port #15331
[libilbc] New port #15331
Conversation
dc7e1df
to
3d61635
Compare
d3c3283
to
af0d106
Compare
libilbc is an Internet Low Bit Rate Codec (iLBC) / RFC 3951 codec. Closes microsoft#14836.
af0d106
to
b721afa
Compare
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
4eacf3e
to
1120f17
Compare
1120f17
to
145ea22
Compare
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.
There are some questions:
- libilbc installed
libilbc.pc
in PACKAGES/lib/pkgconfig, so we should addvcpkg_fixup_pkgconfig
aftervcpkg_install_cmake
. - libilbc's docs is installed in PACKAGES/share/doc, the correct path should be PACKAGES/share/libilbc/doc.
- I found the tool is test program, so we shouldn't install it, please add patch or option to disable it.
- In PACKAGES/include/ibc_export.h line 5:
#ifdef ILBC_STATIC_DEFINE
# define ILBC_EXPORT
# define ILBC_NO_EXPORT
#else
# ifndef ILBC_EXPORT
# ifdef ilbc_EXPORTS
/* We are building this library */
# define ILBC_EXPORT __declspec(dllexport)
# else
/* We are using this library */
# define ILBC_EXPORT __declspec(dllimport)
# endif
# endif
# ifndef ILBC_NO_EXPORT
# define ILBC_NO_EXPORT
# endif
#endif
The judgment #ifdef ILBC_STATIC_DEFINE
shoud be #if 1
when building static, so please modify this line after build (use vcpkg_replace_string
).
18b1680
to
f763c76
Compare
Add vcpkg_fixup_pkgconfig after vcpkg_install_cmake. Install docs into $PREFIX/share/libilbc. Remove ilbc_test after a dynamic build and the bin and debug/bin dirs after a static build. Fixup include/ilbc_export.h for static builds.
f763c76
to
82f96cb
Compare
Done.
libilbc's CMakeLists.txt calls
Done via a patch.
Done. |
Thanks for the PR! |
Describe the pull request
This adds a port for libilbc, an implementation of the Internet Low Bit Rate Codec (iLBC).
What does your PR fix? Fixes [New Port Request] libilbc #14836
Which triplets are supported/not supported?
Tested with x64-osx, but should work with *-windows and *-linux.
Yes.
Yes.