From af70c6767612942ded955e6e4e2edb709930050d Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 22 Oct 2007 20:10:46 +0000 Subject: Conditionals in the buildsystem language allowing for checking of configure flags: /* $If: USE_KQUEUE */ /* $ExtraSources: socketengine_kqueue.cpp */ /* $ExtraObjects: socketengine_kqueue.o */ /* $EndIf */ This is used exactly where the example dictates: to pick a socket engine from the socketengine.cpp. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8308 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src') diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 06e490c42..f17d2f1c5 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -13,6 +13,25 @@ /* $Core: libIRCDsocketengine */ +/********* DEFAULTS **********/ +/* $ExtraSources: socketengine_select.cpp */ +/* $ExtraObjects: socketengine_select.o */ + +/* $If: USE_KQUEUE */ +/* $ExtraSources: socketengine_kqueue.cpp */ +/* $ExtraObjects: socketengine_kqueue.o */ +/* $EndIf */ + +/* $If: USE_EPOLL */ +/* $ExtraSources: socketengine_epoll.cpp */ +/* $ExtraObjects: socketengine_epoll.o */ +/* $EndIf */ + +/* $If: USE_PORTS */ +/* $ExtraSources: socketengine_ports.cpp */ +/* $ExtraObjects: socketengine_ports.o */ +/* $EndIf */ + #include "inspircd.h" #include "socketengine.h" -- cgit v1.2.3