Import("swiften_env", "env") sources = [ "Image.cpp", "ScreenSharing.cpp", "OutgoingScreenSharing.cpp", "IncomingScreenSharing.cpp", "OutgoingScreenSharingManager.cpp", "IncomingScreenSharingManager.cpp", "ScreenSharingManagerImpl.cpp", "VP8RTPParser.cpp", "InputEventResponder.cpp", ] objects = swiften_env.SwiftenObject(sources) if swiften_env["experimental"] : # JRTPLIB classes jrtplib_env = swiften_env.Clone() jrtplib_env.Append(CPPDEFINES = jrtplib_env["JRTPLIB_FLAGS"].get("INTERNAL_CPPDEFINES", [])) objects += jrtplib_env.SwiftenObject([ "RTPSessionImpl.cpp", ]) # libvpx classes libvpx_env = swiften_env.Clone() #libvpx_env.Append(CPPDEFINES = libvpx_env["LIBVPX_FLAGS"].get("INTERNAL_CPPDEFINES", [])) libvpx_env.MergeFlags(libvpx_env.get("LIBVPX_FLAGS", {})) objects += libvpx_env.SwiftenObject([ "VP8Encoder.cpp", "VP8Decoder.cpp", "VP8RTPPacketizer.cpp", ]) swiften_env.Append(SWIFTEN_OBJECTS = [objects]) #env.Append(UNITTEST_SOURCES = [])