summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/SConscript')
-rw-r--r--Swiften/Network/SConscript12
1 files changed, 7 insertions, 5 deletions
diff --git a/Swiften/Network/SConscript b/Swiften/Network/SConscript
index 429ca51..7c790da 100644
--- a/Swiften/Network/SConscript
+++ b/Swiften/Network/SConscript
@@ -36,9 +36,6 @@ sourceList = [
"DomainNameResolver.cpp",
"DomainNameAddressQuery.cpp",
"DomainNameServiceQuery.cpp",
- "PlatformDomainNameResolver.cpp",
- "PlatformDomainNameServiceQuery.cpp",
- "PlatformDomainNameAddressQuery.cpp",
"StaticDomainNameResolver.cpp",
"HostAddress.cpp",
"HostAddressPort.cpp",
@@ -60,11 +57,16 @@ sourceList = [
]
if myenv.get("HAVE_CARES", False) :
- sourceList.append("CAresDomainNameResolver.cpp")
+ sourceList.append("CAresDomainNameResolver.cpp")
if myenv.get("unbound", False) :
+ myenv.Append(CPPDEFINES = "USE_UNBOUND")
sourceList.append("UnboundDomainNameResolver.cpp")
-
+else :
+ sourceList.append("PlatformDomainNameResolver.cpp")
+ sourceList.append("PlatformDomainNameServiceQuery.cpp")
+ sourceList.append("PlatformDomainNameAddressQuery.cpp")
+
if myenv["PLATFORM"] == "darwin" :
myenv.Append(FRAMEWORKS = ["CoreServices", "SystemConfiguration"])
sourceList += [ "MacOSXProxyProvider.cpp" ]