if with_ra:
liboctbstack_env.AppendUnique(LIBS = ['ra_xmpp'])
-if target_os in ['windows', 'msys_nt']:
+if target_os not in ['windows', 'msys_nt']:
+ liboctbstack_env.AppendUnique(LIBS = ['m'])
+else:
# octbstack.def specifies the list of functions exported by octbstack.dll.
liboctbstack_env.Replace(WINDOWS_INSERT_DEF = ['1'])
- if with_tcp == True:
- liboctbstack_env.Textfile(target = 'octbstack_temp.def', source = [File('octbstack_product.def'), File('octbstack_product_with_tcp.def')])
+ if env.get('SECURED') != '1':
+ liboctbstack_env.Textfile(target = 'octbstack.def', source = [File('octbstack_product.def')])
else:
- liboctbstack_env.Textfile(target = 'octbstack_temp.def', source = [File('octbstack_product.def')])
-
- if env.get('SECURED') == '1':
# octbstack.dll is exporting ocpmapi APIs on Windows - there is no ocpmapi.dll.
liboctbstack_env.PrependUnique(LIBS = ['ocpmapi'])
+ if with_tcp == True:
+ liboctbstack_env.Textfile(target = 'octbstack_temp.def', source = [File('octbstack_product.def'), File('octbstack_product_with_tcp.def')])
+ else:
+ liboctbstack_env.Textfile(target = 'octbstack_temp.def', source = [File('octbstack_product.def')])
+
if env.get('MULTIPLE_OWNER') == '1':
liboctbstack_env.Textfile(target = 'octbstack.def', source = [File('octbstack_temp.def'), File('octbstack_product_secured.def'), File('octbstack_product_secured_mot.def')])
else:
liboctbstack_env.Textfile(target = 'octbstack.def', source = [File('octbstack_temp.def'), File('octbstack_product_secured.def')])
- else:
- liboctbstack_env.Textfile(target = 'octbstack.def', source = [File('octbstack_temp.def')])
-else:
- liboctbstack_env.AppendUnique(LIBS = ['m'])
if target_os in ['tizen', 'linux']:
liboctbstack_env.ParseConfig("pkg-config --cflags --libs uuid")