Make SConscript work with eclipse plugin
This commit is contained in:
parent
13a88e712f
commit
681f3c46e7
@ -28,9 +28,9 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
|
||||
template<typename NodeT>
|
||||
struct NodeCoords {
|
||||
typedef unsigned key_type;
|
||||
typedef unsigned key_type; //type of NodeID
|
||||
typedef int value_type; //type of lat,lons
|
||||
|
||||
typedef int value_type;
|
||||
NodeCoords(int _lat, int _lon, NodeT _id) : lat(_lat), lon(_lon), id(_id) {}
|
||||
NodeCoords() : lat(UINT_MAX), lon(UINT_MAX), id(UINT_MAX) {}
|
||||
int lat;
|
||||
|
70
Sconstruct
70
Sconstruct
@ -1,70 +0,0 @@
|
||||
#Sconstruct
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
env = Environment()
|
||||
|
||||
if sys.platform == 'win32':
|
||||
#SCons really wants to use Microsoft compiler :D
|
||||
print "Compiling has not been done on Windows"
|
||||
Exit(-1)
|
||||
else: #Mac OS X
|
||||
if sys.platform == 'darwin':
|
||||
print "Compiling has not been done on Mac"
|
||||
else:
|
||||
env.Append(CPPPATH = ['/usr/include', '/usr/include/include', '/usr/include/libxml2/'])
|
||||
|
||||
env.Append(CCFLAGS = ' -O3')
|
||||
print "Compiling with: ", env['CC']
|
||||
conf = Configure(env)
|
||||
if not conf.CheckCXX():
|
||||
print "No suitable C++ Compiler installed"
|
||||
Exit(-1)
|
||||
if not conf.CheckHeader('omp.h'):
|
||||
print "Compiler does not support OpenMP. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckLib('stxxl'):
|
||||
print "stxxl library not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckLibWithHeader('xml2', 'libxml/xmlreader.h', 'CXX'):
|
||||
print "libxml2 library or header not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('stxxl.h'):
|
||||
print "Could not locate stxxl header. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('google/sparse_hash_map'):
|
||||
print "Could not find Google Sparsehash library. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('boost/asio.hpp'):
|
||||
print "boost/asio.hpp not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckLibWithHeader('boost_thread', 'boost/thread.hpp', 'CXX'):
|
||||
print "boost/thread.hpp not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('boost/bind.hpp'):
|
||||
print "boost/bind.hpp not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('boost/thread.hpp'):
|
||||
print "boost/thread.hpp not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('boost/noncopyable.hpp'):
|
||||
print "boost/noncopyable.hpp not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('boost/shared_ptr.hpp'):
|
||||
print "boost/shared_ptr.hpp not found. Exiting"
|
||||
Exit(-1)
|
||||
if not conf.CheckCXXHeader('kdtree++/kdtree.hpp'):
|
||||
print "kdtree++/kdtree.hpp not found. Exiting"
|
||||
Exit(-1)
|
||||
|
||||
env.Append(CCFLAGS = ' -fopenmp')
|
||||
env.Append(LINKFLAGS = ' -fopenmp')
|
||||
env.Program("extractNetwork.cpp")
|
||||
env.Program("extractLargeNetwork.cpp")
|
||||
env.Program("createHierarchy.cpp")
|
||||
env.Append(CCFLAGS = ' -lboost_regex -lboost_iostreams -lboost_thread -lboost_system')
|
||||
env.Append(LINKFLAGS = ' -lboost_regex -lboost_iostreams -lboost_thread -lboost_system')
|
||||
env.Program("routed.cpp")
|
||||
env = conf.Finish()
|
||||
|
Loading…
Reference in New Issue
Block a user