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:
parent
4ae402223c
commit
968084f074
10
dub.sdl
10
dub.sdl
|
@ -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"
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue