Permalink
Browse files

disable TLS build on Win .. needs OpenSSL dev ..

  • Loading branch information...
1 parent c6bb491 commit 09c541185d31ef8b3cbe27e1632241f2634e93a0 Tobias Oberstein committed Mar 15, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 SConstruct
View
@@ -72,11 +72,15 @@ else:
platform_libs = []
tls_libs = []
+tls_build = False
+
if env['PLATFORM'] == 'posix':
platform_libs = ['pthread', 'rt']
tls_libs = ['ssl', 'crypto']
+ tls_build = True
elif env['PLATFORM'] == 'darwin':
tls_libs = ['ssl', 'crypto']
+ tls_build = True
elif env['PLATFORM'].startswith('win'):
# Win/VC++ supports autolinking. nothing to do.
pass
@@ -110,9 +114,10 @@ echo_server = SConscript('#/examples/echo_server/SConscript',
variant_dir = builddir + 'echo_server',
duplicate = 0)
-echo_server_tls = SConscript('#/examples/echo_server_tls/SConscript',
- variant_dir = builddir + 'echo_server_tls',
- duplicate = 0)
+if tls_build:
+ echo_server_tls = SConscript('#/examples/echo_server_tls/SConscript',
+ variant_dir = builddir + 'echo_server_tls',
+ duplicate = 0)
echo_client = SConscript('#/examples/echo_client/SConscript',
variant_dir = builddir + 'echo_client',
@@ -129,5 +134,3 @@ chat_server = SConscript('#/examples/chat_server/SConscript',
concurrent_server = SConscript('#/examples/concurrent_server/SConscript',
variant_dir = builddir + 'concurrent_server',
duplicate = 0)
-
-

0 comments on commit 09c5411

Please sign in to comment.