Remove the default dependency to libanl. Fixes #78.

The dependency wasn't used at all, but is now optionally used through the epoll-gaia configuration.
This commit is contained in:
Sönke Ludwig 2018-11-11 13:07:48 +01:00
parent 4ae402223c
commit 968084f074
2 changed files with 10 additions and 2 deletions

10
dub.sdl
View file

@ -5,7 +5,7 @@ copyright "Copyright © 2016-2018 Sönke Ludwig"
targetType "library"
libs "anl" "resolv" platform="linux"
libs "resolv" platform="linux"
libs "ws2_32" "user32" platform="windows-dmd"
dependency "taggedalgebraic" version="~>0.10.12"
@ -15,6 +15,14 @@ configuration "epoll" {
versions "EventcoreEpollDriver"
}
// getaddrinfo_a based DNS lookups
configuration "epoll-gaia" {
libs "anl"
versions "EventcoreUseGAIA"
platforms "linux"
versions "EventcoreEpollDriver"
}
configuration "kqueue" {
platforms "osx" "freebsd"
versions "EventcoreKqueueDriver"

View file

@ -45,7 +45,7 @@ final class PosixEventDriver(Loop : PosixEventLoop) : EventDriver {
alias TimerDriver = LoopTimeoutTimerDriver;
alias SocketsDriver = PosixEventDriverSockets!Loop;
version (Windows) alias DNSDriver = EventDriverDNS_GHBN!(EventsDriver, SignalsDriver);
//version (linux) alias DNSDriver = EventDriverDNS_GAIA!(EventsDriver, SignalsDriver);
else version (EventcoreUseGAIA) alias DNSDriver = EventDriverDNS_GAIA!(EventsDriver, SignalsDriver);
else alias DNSDriver = EventDriverDNS_GAI!(EventsDriver, SignalsDriver);
alias FileDriver = ThreadedFileEventDriver!EventsDriver;
version (linux) alias WatcherDriver = InotifyEventDriverWatchers!EventsDriver;