Initial commit from private 0.3 repository

This commit is contained in:
Peter Thorson
2013-01-06 06:09:15 -06:00
parent 5809440f1a
commit f10f8a4ce0
319 changed files with 16750 additions and 45341 deletions

View File

@@ -1,20 +1,23 @@
## echo_server
## Main development example
##
Import('env')
Import('env_cpp11')
Import('boostlibs')
Import('wslib')
Import('platform_libs')
Import('polyfill_libs')
localenv = env.Clone ()
env = env.Clone ()
env_cpp11 = env_cpp11.Clone ()
sources = ["echo_server.cpp"]
prgs = []
LIBS = [wslib, platform_libs] + boostlibs(['system',
'date_time',
'regex',
'thread'])
# if a C++11 environment is avaliable build using that, otherwise use boost
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs]
prgs += env_cpp11.Program('echo_server', ["echo_server.cpp"], LIBS = ALL_LIBS)
else:
ALL_LIBS = boostlibs(['system','regex'],env) + [platform_libs] + [polyfill_libs]
prgs += env.Program('echo_server', ["echo_server.cpp"], LIBS = ALL_LIBS)
prg = localenv.Program('echo_server', sources, LIBS = LIBS)
Return('prg')
Return('prgs')