git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@528
e16421f0-f15b-0410-abcd-
98678b794739
Export("libpath")
Export("DEBUG")
SConscript('tests/SConscript')
+SConscript('exec/SConscript')
--- /dev/null
+import sys
+
+Import("DEBUG")
+Import("env")
+Import("libpath")
+
+cpppath = env["CPPPATH"]
+libs = ['p2tp']
+
+if sys.platform == "win32":
+ cpppath = ".."
+ libpath += '..;'
+ if DEBUG:
+ env.Append(CXXFLAGS="/Zi /Yd /MTd")
+else:
+ cpppath = cpppath + ':..'
+ libpath += ':..'
+ if DEBUG:
+ env.Append(CXXFLAGS="-g")
+
+print "tests: libpath is",libpath
+
+env.Program(
+ target='seeder',
+ source=['seeder.cpp'],
+ CPPPATH=cpppath,
+ LIBS=libs,
+ LIBPATH=libpath )
+
+env.Program(
+ target='leecher',
+ source=['leecher.cpp'],
+ CPPPATH=cpppath,
+ LIBS=libs,
+ LIBPATH=libpath )
+
+env.Program(
+ target='hasher',
+ source=['hasher.cpp'],
+ CPPPATH=cpppath,
+ LIBS=libs,
+ LIBPATH=libpath )
+
//#include <glog/logging.h>
#include "p2tp.h"
#include "compat.h"
+#include <gtest/gtest.h>
using namespace p2tp;