summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-22 20:10:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-22 20:10:46 +0000
commitaf70c6767612942ded955e6e4e2edb709930050d (patch)
treea73885a3d7e08882af43375b6a8f425e9e26eddc /src
parentab6a7318e36bd8e0a259cd9eef3694a0f0e8684a (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/socketengine.cpp19
1 files changed, 19 insertions, 0 deletions
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"