diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-03-02 10:15:30 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-03-02 14:11:00 (GMT) |
commit | 1e55d19a900dae82947e18387cc695262b10ce26 (patch) | |
tree | 4ae56742430f399d7b68e5b411273830fc97b697 /Swiften/Network | |
parent | c1b98cacaf627481d13f974e3cd6653feabf41f7 (diff) | |
download | swift-contrib-1e55d19a900dae82947e18387cc695262b10ce26.zip swift-contrib-1e55d19a900dae82947e18387cc695262b10ce26.tar.bz2 |
Adding iPhone compilation
Diffstat (limited to 'Swiften/Network')
-rw-r--r-- | Swiften/Network/SConscript | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Swiften/Network/SConscript b/Swiften/Network/SConscript index 767eee2..937ab0c 100644 --- a/Swiften/Network/SConscript +++ b/Swiften/Network/SConscript @@ -2,9 +2,10 @@ Import("swiften_env") myenv = swiften_env.Clone() myenv.MergeFlags(myenv["LIBIDN_FLAGS"]) -myenv.MergeFlags(myenv["CARES_FLAGS"]) +if myenv["target"] == "native": + myenv.MergeFlags(myenv["CARES_FLAGS"]) -objects = myenv.StaticObject([ +sourceList = [ "BoostConnection.cpp", "BoostConnectionFactory.cpp", "BoostConnectionServer.cpp", @@ -12,7 +13,7 @@ objects = myenv.StaticObject([ "BoostIOServiceThread.cpp", "ConnectionFactory.cpp", "ConnectionServer.cpp", - "Connector.cpp", + "Connector.cpp", "TimerFactory.cpp", "DummyTimerFactory.cpp", "BoostTimerFactory.cpp", @@ -21,10 +22,13 @@ objects = myenv.StaticObject([ "DomainNameServiceQuery.cpp", "PlatformDomainNameResolver.cpp", "PlatformDomainNameServiceQuery.cpp", - "CAresDomainNameResolver.cpp", "StaticDomainNameResolver.cpp", "HostAddress.cpp", "Timer.cpp", - "BoostTimer.cpp", - ]) + "BoostTimer.cpp"] +if myenv["target"] == "native": + sourceList.append("CAresDomainNameResolver.cpp") + + +objects = myenv.StaticObject(sourceList) swiften_env.Append(SWIFTEN_OBJECTS = [objects]) |