diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-16 14:54:18 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-16 14:55:55 (GMT) |
commit | 00a26ca1c2d3f753599d5608b18726996beeb4b1 (patch) | |
tree | 261f166c5c58e4eb0d0faa442e88317d71ced6ba /Swiften/EventLoop/SConscript | |
parent | e3f01043d60e745620a63fb785dd0d4674ec9370 (diff) | |
download | swift-00a26ca1c2d3f753599d5608b18726996beeb4b1.zip swift-00a26ca1c2d3f753599d5608b18726996beeb4b1.tar.bz2 |
Some build system fixes.
Diffstat (limited to 'Swiften/EventLoop/SConscript')
-rw-r--r-- | Swiften/EventLoop/SConscript | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Swiften/EventLoop/SConscript b/Swiften/EventLoop/SConscript index 5d1c3cb..990b91b 100644 --- a/Swiften/EventLoop/SConscript +++ b/Swiften/EventLoop/SConscript @@ -7,11 +7,14 @@ sources = [ "SimpleEventLoop.cpp", ] -if swiften_env["PLATFORM"] == "darwin" and swiften_env["target"] == "native": - sources += [ - "Cocoa/CocoaEventLoop.mm", - "Cocoa/CocoaEvent.mm" - ] - objects = swiften_env.StaticObject(sources) swiften_env.Append(SWIFTEN_OBJECTS = [objects]) + +if swiften_env["PLATFORM"] == "darwin" : + myenv = swiften_env.Clone() + myenv.Append(CXXFLAGS = ["-fobjc-abi-version=2", "-fobjc-legacy-dispatch"]) + objects = myenv.StaticObject([ + "Cocoa/CocoaEventLoop.mm", + "Cocoa/CocoaEvent.mm" + ]) + swiften_env.Append(SWIFTEN_OBJECTS = [objects]) |