Great renaming: p2tp->swift.
authorvictor <victor@mughal.tribler.org>
Tue, 26 Jan 2010 16:31:36 +0000 (17:31 +0100)
committervictor <victor@mughal.tribler.org>
Tue, 26 Jan 2010 16:31:36 +0000 (17:31 +0100)
Now the scons part.

SConstruct
exec/SConscript
exec/hasher.cpp
tests/SConscript
tests/ledbattest2.cpp

index 079e965..f4d2cd7 100644 (file)
@@ -15,9 +15,9 @@ 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',
+    'transfer.cpp', 'swift.cpp', 'sendrecv.cpp', 'send_control.cpp',
     'compat/hirestimeofday.cpp', 'compat.cpp', 'compat/util.cpp']
 
 env = Environment()
@@ -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']
index f195cef..8c1fa5d 100644 (file)
@@ -6,7 +6,7 @@ Import("libs")
 Import("libpath")
 
 cpppath = env["CPPPATH"]
-libs = ['p2tp'] + libs  # order is important, crypto needs to be last
+libs = ['swift'] + libs  # order is important, crypto needs to be last
 
 if sys.platform == "win32":
     cpppath = ".."
index c95f119..13c62e9 100644 (file)
@@ -8,6 +8,7 @@
  */
 #include <stdio.h>
 #include "hashtree.h"
+#include "swift.h"
 
 
 int main (int argn, char** args) {
index 09ea949..2affccc 100644 (file)
@@ -7,9 +7,9 @@ Import("libpath")
 
 cpppath = env["CPPPATH"]
 if DEBUG and sys.platform == "win32":
-       libs = ['p2tp','gtestd'] + libs  # order is important, crypto needs to be last
+       libs = ['swift','gtestd'] + libs  # order is important, crypto needs to be last
 else:
-       libs = ['p2tp','gtest'] + libs  # order is important, crypto needs to be last
+       libs = ['swift','gtest'] + libs  # order is important, crypto needs to be last
 
 if sys.platform == "win32":
     cpppath = ".."
index 3b97d22..9b533e2 100644 (file)
 #include <vector>
 #include <deque>
 #include "datagram.h"
-#include "p2tp.h"
+#include "swift.h"
 #include <gtest/gtest.h>
 
-using namespace p2tp;
+using namespace swift;
 using namespace std;
 
 /**
@@ -184,7 +184,7 @@ TEST(Datagram,LedbatTest) {
 int main (int argc, char** argv) {
 
     int opt;
-    p2tp::LibraryInit();
+    swift::LibraryInit();
     printf("Warning: use the script to set up dummynet!\n");
     testing::InitGoogleTest(&argc, argv);
     dest_addr = htonl(INADDR_LOOPBACK);