projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused pkg dependancy
[platform/upstream/iotivity.git]
/
extlibs
/
tinydtls
/
SConscript
diff --git
a/extlibs/tinydtls/SConscript
b/extlibs/tinydtls/SConscript
index
5d186a2
..
82aafeb
100644
(file)
--- a/
extlibs/tinydtls/SConscript
+++ b/
extlibs/tinydtls/SConscript
@@
-40,9
+40,6
@@
dtls_env.AppendUnique(CPPPATH = [root_dir+'aes/'])
dtls_env.AppendUnique(CPPPATH = [root_dir+'ecc/'])
dtls_env.AppendUnique(CPPPATH = [root_dir+'sha2/'])
dtls_env.AppendUnique(CPPPATH = [root_dir+'ecc/'])
dtls_env.AppendUnique(CPPPATH = [root_dir+'sha2/'])
-if target_os not in ['arduino', 'windows', 'winrt']:
- dtls_env.AppendUnique(CPPDEFINES = ['HAVE_SYS_TIME_H'])
-
######################################################################
# Source files and Target(s)
######################################################################
######################################################################
# Source files and Target(s)
######################################################################
@@
-84,7
+81,7
@@
libtinydtls = dtls_env.StaticLibrary('tinydtls', tinydtls_src, OBJPREFIX='libtin
if not env.get('RELEASE'):
samples_env = dtls_env.Clone()
if not env.get('RELEASE'):
samples_env = dtls_env.Clone()
- if target_os not in ['arduino', 'windows'
, 'winrt'
]:
+ if target_os not in ['arduino', 'windows']:
samples_env.AppendUnique(CPPDEFINES = ['_GNU_SOURCE'])
dtlsserver = samples_env.Program('dtls-server', ['tests/dtls-server.c'])
samples_env.AppendUnique(CPPDEFINES = ['_GNU_SOURCE'])
dtlsserver = samples_env.Program('dtls-server', ['tests/dtls-server.c'])
@@
-93,6
+90,9
@@
if not env.get('RELEASE'):
samples_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
samples_env.PrependUnique(LIBS = ['tinydtls'])
samples_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
samples_env.PrependUnique(LIBS = ['tinydtls'])
+ if target_os in ['windows', 'msys_nt']:
+ samples_env.AppendUnique(LIBS = ['ws2_32', 'iphlpapi', 'advapi32', 'bcrypt'])
+
Alias("samples", [dtlsserver, dtlsclient])
samples_env.AppendTarget('samples')
Alias("samples", [dtlsserver, dtlsclient])
samples_env.AppendTarget('samples')