add .gitignore
[swift-upb.git] / SConstruct
index 079e965..ef52d27 100644 (file)
@@ -15,10 +15,10 @@ DEBUG = True
 
 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":
@@ -28,7 +28,7 @@ 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']
@@ -89,14 +89,20 @@ if DEBUG:
        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')