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" targetType "library"
libs "anl" "resolv" platform="linux" libs "resolv" platform="linux"
libs "ws2_32" "user32" platform="windows-dmd" libs "ws2_32" "user32" platform="windows-dmd"
dependency "taggedalgebraic" version="~>0.10.12" dependency "taggedalgebraic" version="~>0.10.12"
@ -15,6 +15,14 @@ configuration "epoll" {
versions "EventcoreEpollDriver" versions "EventcoreEpollDriver"
} }
// getaddrinfo_a based DNS lookups
configuration "epoll-gaia" {
libs "anl"
versions "EventcoreUseGAIA"
platforms "linux"
versions "EventcoreEpollDriver"
}
configuration "kqueue" { configuration "kqueue" {
platforms "osx" "freebsd" platforms "osx" "freebsd"
versions "EventcoreKqueueDriver" versions "EventcoreKqueueDriver"

View file

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