modify build setup
[c11concurrency-benchmarks.git] / gdax-orderbook-hpp / demo / dependencies / websocketpp-0.7.0 / examples / echo_client / SConscript
1 ## echo_client example
2 ##
3
4 Import('env')
5 Import('env_cpp11')
6 Import('boostlibs')
7 Import('platform_libs')
8 Import('polyfill_libs')
9
10 env = env.Clone ()
11 env_cpp11 = env_cpp11.Clone ()
12
13 prgs = []
14
15 # if a C++11 environment is available build using that, otherwise use boost
16 if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
17    ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + ['z']
18    prgs += env_cpp11.Program('echo_client', ["echo_client.cpp"], LIBS = ALL_LIBS)
19 else:
20    ALL_LIBS = boostlibs(['system','random'],env) + [platform_libs] + [polyfill_libs] + ['z']
21    prgs += env.Program('echo_client', ["echo_client.cpp"], LIBS = ALL_LIBS)
22
23 Return('prgs')