octbstack_static.lib was identical to octbstack_internal.lib.
IoTivity sample apps and apps outside IoTivity are using
octbstack.lib, so they don't need octbstack_internal.lib.
Change-Id: I6ffef4ba6ee1ea90e852c707a6c58a7f8e93c1f9
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19163
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
sptest_env.AppendUnique(CPPDEFINES=['MULTIPLE_OWNER'])
if target_os in ['msys_nt', 'windows']:
- sptest_env.AppendUnique(LIBS = ['octbstack_static', 'sqlite3'])
+ sptest_env.AppendUnique(LIBS = ['octbstack_internal', 'sqlite3'])
else:
sptest_env.AppendUnique(LIBS = ['octbstack'])
if target_os in ['linux', 'tizen']:
tools_env.AppendUnique(LIBS = ['octbstack'])
else:
# This IoTivity-internal app calls non-Public APIs, so link with LIBS intended
- # for IoTivity-internal tests (such as octbstack_static).
- tools_env.AppendUnique(LIBS = ['octbstack_static'])
+ # for IoTivity-internal tests (such as octbstack_internal).
+ tools_env.AppendUnique(LIBS = ['octbstack_internal'])
if target_os in ['windows']:
tools_env.AppendUnique(LIBS = ['sqlite3'])
tools_env.AppendUnique(LIBS = ['coap', 'mbedtls', 'mbedx509', 'mbedcrypto',
srmtest_env.AppendUnique(CPPDEFINES=['MULTIPLE_OWNER'])
if target_os == 'windows':
- srmtest_env.AppendUnique(LIBS = ['octbstack_static', 'sqlite3'])
+ srmtest_env.AppendUnique(LIBS = ['octbstack_internal', 'sqlite3'])
else:
# TODO: Implement feature check.
srmtest_env.AppendUnique(CPPDEFINES = ['HAVE_LOCALTIME_R'])
octbstack_libs = Flatten(test_liboctbstack)
-if target_os in ['windows', 'msys_nt']:
- # Avoid a name conflict with the octbstack.lib target of the SharedLibrary.
- static_liboctbstack = liboctbstack_env.StaticLibrary('octbstack_static', liboctbstack_src)
-else:
+if target_os not in ['windows', 'msys_nt']:
static_liboctbstack = liboctbstack_env.StaticLibrary('octbstack', liboctbstack_src)
-
-octbstack_libs += Flatten(static_liboctbstack)
+ octbstack_libs += Flatten(static_liboctbstack)
if target_os not in ['arduino','darwin','ios'] :
shared_liboctbstack = liboctbstack_env.SharedLibrary('octbstack', liboctbstack_src)