-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove libnice and glib #1505
Remove libnice and glib #1505
Conversation
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.
This PR is awesome! we will get rid of a biiiig dependency (GLIB) 🎉
@@ -54,13 +54,13 @@ check_result() { | |||
install_homebrew_from_cache(){ | |||
if [ -f cache/homebrew-cache.tar.gz ]; then | |||
tar xzf cache/homebrew-cache.tar.gz --directory /usr/local/Cellar | |||
brew link glib pkg-config boost cmake yasm log4cxx gettext coreutils | |||
brew link pkg-config boost cmake yasm log4cxx gettext coreutils |
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.
👍
@@ -1,5 +1,5 @@ | |||
/* | |||
* LibNiceConnection.h | |||
* IceConnection.h |
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.
👍
@@ -55,7 +55,7 @@ unsigned long ssl_thread_id() { // NOLINT | |||
} | |||
#else | |||
void ssl_thread_id(CRYPTO_THREADID *id) { // NOLINT | |||
CRYPTO_THREADID_set_numeric(id, (unsigned long)std::hash<std::thread::id>()(std::this_thread::get_id()); // NOLINT | |||
CRYPTO_THREADID_set_numeric(id, (unsigned long)std::hash<std::thread::id>()(std::this_thread::get_id())); // NOLINT |
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.
🤔 good catch!
@@ -68,8 +66,8 @@ class IceConfig { | |||
turn_port{0}, | |||
min_port{0}, | |||
max_port{0}, | |||
should_trickle{false}, | |||
use_nicer{false} { |
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.
💯
Description
We have been using NiceR for 2+ years without problems. This PR removes the libnice alternative, reducing the maintenance work and the testing that is required to maintain 2 libraries for IO. As a bonus, it should reduce image size and build time in some cases.
[] It needs and includes Unit Tests
Changes in Client or Server public APIs
[] It includes documentation for these changes in
/doc
.