TestDir='tests'
-target = 'p2tp'
+target = 'swift'
source = [ 'bin64.cpp','sha1.cpp','hashtree.cpp','datagram.cpp','bins.cpp',
- 'transfer.cpp', 'p2tp.cpp', 'sendrecv.cpp', 'send_control.cpp',
- 'compat/hirestimeofday.cpp', 'compat.cpp', 'compat/util.cpp']
+ 'transfer.cpp', 'channel.cpp', 'sendrecv.cpp', 'send_control.cpp',
+ 'compat.cpp']
env = Environment()
if sys.platform == "win32":
# Make sure scons finds std MSVC include files
if not 'INCLUDE' in os.environ:
- print "p2tp: Please run scons in a Visual Studio Command Prompt"
+ print "swift: Please run scons in a Visual Studio Command Prompt"
sys.exit(-1)
include = os.environ['INCLUDE']
env.Append(CXXFLAGS="-DDEBUG")
env.StaticLibrary (
- target= target,
+ target='libswift',
source = source,
LIBS=libs,
LIBPATH=libpath )
+env.Program(
+ target='swift',
+ source=['swift.cpp','httpgw.cpp'],
+ CPPPATH=cpppath,
+ LIBS=[libs,'libswift'],
+ LIBPATH=libpath+':.' )
+
Export("env")
Export("libs")
Export("libpath")
Export("DEBUG")
SConscript('tests/SConscript')
-SConscript('exec/SConscript')