######################################################################
#building Resource client, resourceBroker and resourceCache
######################################################################
#building Resource client, resourceBroker and resourceCache
resourceClient_env.PrependUnique(LIBS = ['oc', 'rcs_common', 'octbstack','oc_logger'])
resourceClient_env.PrependUnique(LIBS = ['oc', 'rcs_common', 'octbstack','oc_logger'])
-if target_os not in ['windows', 'winrt']:
- resourceClient_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++0x'])
-if target_os == 'linux':
- resourceClient_env.AppendUnique(LIBS = ['pthread'])
+if target_os not in ['windows']:
+ resourceClient_env.AppendUnique(CXXFLAGS = ['-Wall', '-std=c++0x'])
+ resourceClient_env.AppendUnique(LIBS = ['dl'])
+ if target_os in ['linux']:
+ resourceClient_env.AppendUnique(LIBS = ['pthread'])
resourceClient_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
resourceClient_env.PrependUnique(LIBS = ['gnustl_shared', 'log'])
resourceClient_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
resourceClient_env.PrependUnique(LIBS = ['gnustl_shared', 'log'])
-resourceClient_env.AppendUnique(LIBS = ['dl'])
+if target_os in ['linux']:
+ if not env.get('RELEASE'):
+ resourceClient_env.PrependUnique(LIBS = ['gcov'])
+ resourceClient_env.AppendUnique(CXXFLAGS = ['--coverage'])
BROKER_SRC_DIR + 'ResourceBroker.cpp',
CACHE_SRC_DIR + 'DataCache.cpp',
CACHE_SRC_DIR + 'ResourceCacheManager.cpp',
BROKER_SRC_DIR + 'ResourceBroker.cpp',
CACHE_SRC_DIR + 'DataCache.cpp',
CACHE_SRC_DIR + 'ResourceCacheManager.cpp',
RESOURCECLIENT_DIR + 'RCSDiscoveryManager.cpp',
RESOURCECLIENT_DIR + 'RCSDiscoveryManagerImpl.cpp',
RESOURCECLIENT_DIR + 'RCSRemoteResourceObject.cpp'
RESOURCECLIENT_DIR + 'RCSDiscoveryManager.cpp',
RESOURCECLIENT_DIR + 'RCSDiscoveryManagerImpl.cpp',
RESOURCECLIENT_DIR + 'RCSRemoteResourceObject.cpp'
-ResourceClientsdk_shared = resourceClient_env.SharedLibrary('rcs_client', client_src)
-
-resourceClient_env.InstallTarget([ResourceClientsdk_static,ResourceClientsdk_shared], 'librcs_client')
-resourceClient_env.UserInstallTargetLib([ResourceClientsdk_static,ResourceClientsdk_shared], 'librcs_client')
+if target_os not in ['ios']:
+ ResourceClientsdk_shared = resourceClient_env.SharedLibrary('rcs_client', client_src)
+ resourceClient_env.InstallTarget([ResourceClientsdk_static,ResourceClientsdk_shared], 'rcs_client')
+ resourceClient_env.UserInstallTargetLib([ResourceClientsdk_static,ResourceClientsdk_shared], 'rcs_client')
+else:
+ resourceClient_env.InstallTarget([ResourceClientsdk_static], 'rcs_client')
+ resourceClient_env.UserInstallTargetLib([ResourceClientsdk_static], 'rcs_client')
resourceClient_env.UserInstallTargetHeader('include/RCSAddress.h', 'service/resource-encapsulation', 'RCSAddress.h')
resourceClient_env.UserInstallTargetHeader('include/RCSDiscoveryManager.h', 'service/resource-encapsulation', 'RCSDiscoveryManager.h')
resourceClient_env.UserInstallTargetHeader('include/RCSRemoteResourceObject.h', 'service/resource-encapsulation', 'RCSRemoteResourceObject.h')
resourceClient_env.UserInstallTargetHeader('include/RCSResourceAttributes.h', 'service/resource-encapsulation', 'RCSResourceAttributes.h')
resourceClient_env.UserInstallTargetHeader('include/RCSResourceObject.h', 'service/resource-encapsulation', 'RCSResourceObject.h')
resourceClient_env.UserInstallTargetHeader('include/RCSAddress.h', 'service/resource-encapsulation', 'RCSAddress.h')
resourceClient_env.UserInstallTargetHeader('include/RCSDiscoveryManager.h', 'service/resource-encapsulation', 'RCSDiscoveryManager.h')
resourceClient_env.UserInstallTargetHeader('include/RCSRemoteResourceObject.h', 'service/resource-encapsulation', 'RCSRemoteResourceObject.h')
resourceClient_env.UserInstallTargetHeader('include/RCSResourceAttributes.h', 'service/resource-encapsulation', 'RCSResourceAttributes.h')
resourceClient_env.UserInstallTargetHeader('include/RCSResourceObject.h', 'service/resource-encapsulation', 'RCSResourceObject.h')
resourceClient_env.UserInstallTargetHeader('include/RCSException.h', 'service/resource-encapsulation', 'RCSException.h')
resourceClient_env.UserInstallTargetHeader('include/RCSRequest.h', 'service/resource-encapsulation', 'RCSRequest.h')
resourceClient_env.UserInstallTargetHeader('include/RCSException.h', 'service/resource-encapsulation', 'RCSException.h')
resourceClient_env.UserInstallTargetHeader('include/RCSRequest.h', 'service/resource-encapsulation', 'RCSRequest.h')
resourceClient_env.UserInstallTargetHeader('include/RCSResponse.h', 'service/resource-encapsulation', 'RCSResponse.h')
resourceClient_env.UserInstallTargetHeader('include/RCSResponse.h', 'service/resource-encapsulation', 'RCSResponse.h')
+resourceClient_env.UserInstallTargetHeader('include/RCSRepresentation.h', 'service/resource-encapsulation', 'RCSRepresentation.h')
+resourceClient_env.UserInstallTargetHeader('include/RCSSeparateResponse.h', 'service/resource-encapsulation', 'RCSSeparateResponse.h')
######################################################################
# Build Sample App: SampleResourceClient & SampleResourceServer
######################################################################
######################################################################
# Build Sample App: SampleResourceClient & SampleResourceServer
######################################################################
SConscript('unittests/SConscript')
SConscript('src/resourceCache/unittests/SConscript')
SConscript('src/resourceBroker/unittest/SConscript')
SConscript('unittests/SConscript')
SConscript('src/resourceCache/unittests/SConscript')
SConscript('src/resourceBroker/unittest/SConscript')