-
Notifications
You must be signed in to change notification settings - Fork 187
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
Re-enable avahi support for discovery #201
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,8 @@ alsa = { git = "https://github.com/plietar/rust-alsa", optional = tru | |
portaudio-rs = { version = "0.3.0", optional = true } | ||
libpulse-sys = { git = "https://github.com/astro/libpulse-sys", optional = true } | ||
|
||
mdns = { git = "https://github.com/plietar/rust-mdns" } | ||
mdns = { git = "https://github.com/plietar/rust-mdns", optional = true } | ||
dns-sd = { version = "~0.1.3", optional = true } | ||
|
||
error-chain = { version = "0.9.0", default_features = false } | ||
futures = "0.1.8" | ||
|
@@ -71,8 +72,10 @@ portaudio-backend = ["portaudio-rs"] | |
pulseaudio-backend = ["libpulse-sys"] | ||
|
||
with-tremor = ["tremor"] | ||
with-rust-mdns = ["mdns"] | ||
with-avahi = ["dns-sd"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same,
|
||
|
||
default = ["portaudio-backend"] | ||
default = ["portaudio-backend","with-rust-mdns"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: there should be a space between the two items. |
||
|
||
[package.metadata.deb] | ||
maintainer = "nobody" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -eux | ||
|
||
cargo build --release --no-default-features --features "alsa-backend with-avahi" | ||
cp /usr/lib/x86_64-linux-gnu/libdns_sd.so.1 /build/release | ||
|
||
export PKG_CONFIG_ALLOW_CROSS=0 | ||
|
||
export PKG_CONFIG_PATH=/usr/lib/aarch64-unknown-linux-gnu/pkgconfig | ||
cargo build --release --target aarch64-unknown-linux-gnu --no-default-features --features "alsa-backend with-avahi" | ||
cp /usr/lib/aarch64-linux-gnu/libdns_sd.so.1 /build/aarch64-unknown-linux-gnu/release | ||
|
||
export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabi/pkgconfig | ||
cargo build --release --target arm-unknown-linux-gnueabi --no-default-features --features "alsa-backend with-avahi" | ||
cp /usr/lib/arm-linux-gnueabi/libdns_sd.so.1 /build/arm-unknown-linux-gnueabi/release | ||
|
||
export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig | ||
cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features "alsa-backend with-avahi" | ||
cp /usr/lib/arm-linux-gnueabihf/libdns_sd.so.1 /build/arm-unknown-linux-gnueabihf/release | ||
|
||
export PKG_CONFIG_PATH=/usr/lib/mipsel-linux-gnu/pkgconfig | ||
cargo build --release --target mipsel-unknown-linux-gnu --no-default-features --features "alsa-backend with-avahi" | ||
cp /usr/libmipsel-linux-gnu/libdns_sd.so.1 /build/mipsel-unknown-linux-gnu/release | ||
|
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.
Could you rename the feature to
with-internal-mdns