From: KIM JungYong Date: Thu, 1 Dec 2016 08:26:45 +0000 (+0900) Subject: Remove resource-hosting service which is deprecated. X-Git-Tag: 1.3.0~996 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24f8093f5dca526208f11f7d66df151088bc6789;p=platform%2Fupstream%2Fiotivity.git Remove resource-hosting service which is deprecated. Current resource-hosting service is deprecated because concept of resource proxy can cover with functionality of cloud or relay server. And this service would not handled for previous releases. So this service can't cover for recent basic protocols. If needs is arised for this concept, will be develop on the new service. Change-Id: Ie14482924b7ccbebbd2512f017ad4b6039d72dd2 Signed-off-by: KIM JungYong Reviewed-on: https://gerrit.iotivity.org/gerrit/15003 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi Reviewed-on: https://gerrit.iotivity.org/gerrit/15245 Reviewed-by: Jaehong Jo Reviewed-by: Phil Coval --- diff --git a/service/SConscript b/service/SConscript index e34fd0f..409767c 100755 --- a/service/SConscript +++ b/service/SConscript @@ -27,9 +27,6 @@ Import('env') target_os = env.get('TARGET_OS') if target_os not in ['arduino','darwin', 'ios', 'windows']: - # Build resource-hosting project - SConscript('resource-hosting/SConscript') - # Build resource-encapsulation project SConscript('resource-encapsulation/SConscript') diff --git a/service/resource-hosting/SConscript b/service/resource-hosting/SConscript deleted file mode 100644 index f9d9185..0000000 --- a/service/resource-hosting/SConscript +++ /dev/null @@ -1,101 +0,0 @@ -#****************************************************************** -# -# Copyright 2014 Samsung Electronics All Rights Reserved. -# -#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - -## -# NotificationManager build script -## - -Import('env') - -if env.get('RELEASE'): - env.AppendUnique(CCFLAGS = ['-Os']) - env.AppendUnique(CPPDEFINES = ['NDEBUG']) -else: - env.AppendUnique(CCFLAGS = ['-g']) - -if env.get('LOGGING'): - env.AppendUnique(CPPDEFINES = ['TB_LOG']) - -lib_env = env.Clone() -SConscript('#service/third_party_libs.scons', 'lib_env') -resourcehosting_env = lib_env.Clone() - -target_os = env.get('TARGET_OS') -###################################################################### -# Build flags -###################################################################### -resourcehosting_env.AppendUnique(CPPPATH = ['include']) -resourcehosting_env.AppendUnique(CPPPATH = ['../resource-encapsulation/include']) -resourcehosting_env.AppendUnique(CPPPATH = ['../resource-encapsulation/src/common/primitiveResource/include']) - -resourcehosting_env.PrependUnique(LIBS = [ - 'rcs_client', - 'rcs_server', - 'rcs_common', - 'oc', - 'octbstack', - 'oc_logger', - 'connectivity_abstraction', - 'libcoap' - ]) - -if target_os not in ['windows']: - resourcehosting_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++0x']) - -if target_os not in ['darwin', 'ios', 'windows']: - resourcehosting_env.AppendUnique(LINKFLAGS = ['-Wl,--no-undefined']) - -if target_os in ['linux']: - resourcehosting_env.AppendUnique(LIBS = ['pthread']) - -if target_os == 'android': - resourcehosting_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions']) - resourcehosting_env.AppendUnique(LIBS = ['gnustl_shared','log']) - - if not env.get('RELEASE'): - resourcehosting_env.AppendUnique(LIBS = ['log']) - -###################################################################### -# Source files and Targets -###################################################################### -HOSTING_SRC_DIR = 'src/' -resourcehosting_src = [ - HOSTING_SRC_DIR + 'Hosting.cpp', - HOSTING_SRC_DIR + 'ResourceHosting.cpp', - HOSTING_SRC_DIR + 'HostingObject.cpp', - HOSTING_SRC_DIR + 'RequestObject.cpp' - ] - -if target_os in ['tizen','android'] : - resourcehostingsdk = resourcehosting_env.SharedLibrary('resource_hosting', resourcehosting_src) -else : - resourcehostingsdk = resourcehosting_env.StaticLibrary('resource_hosting', resourcehosting_src) - -resourcehosting_env.InstallTarget(resourcehostingsdk, 'resource_hosting') -resourcehosting_env.UserInstallTargetLib(resourcehostingsdk, 'resource_hosting') -resourcehosting_env.UserInstallTargetHeader('include/Hosting.h',\ - 'service/resource-hosting', 'Hosting.h') - -# Go to build Unit test -#if target_os in ['linux']: -# SConscript('unittest/SConscript') - -# Go to build sample apps -SConscript('SampleApp/SConscript') diff --git a/service/resource-hosting/SampleApp/SConscript b/service/resource-hosting/SampleApp/SConscript deleted file mode 100644 index 78b0810..0000000 --- a/service/resource-hosting/SampleApp/SConscript +++ /dev/null @@ -1,10 +0,0 @@ -## -# Examples build script -## -Import('env') - -target_os = env.get('TARGET_OS') -if target_os in ['linux']: - SConscript('linux/SConscript') -elif target_os == 'arduino': - SConscript('arduino/SConscript') \ No newline at end of file diff --git a/service/resource-hosting/SampleApp/android/SampleConsumer/.classpath b/service/resource-hosting/SampleApp/android/SampleConsumer/.classpath deleted file mode 100644 index 0461652..0000000 --- a/service/resource-hosting/SampleApp/android/SampleConsumer/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/service/resource-hosting/SampleApp/android/SampleConsumer/.project b/service/resource-hosting/SampleApp/android/SampleConsumer/.project deleted file mode 100644 index 3684f99..0000000 --- a/service/resource-hosting/SampleApp/android/SampleConsumer/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - SampleConsumer - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/service/resource-hosting/SampleApp/android/SampleConsumer/AndroidManifest.xml b/service/resource-hosting/SampleApp/android/SampleConsumer/AndroidManifest.xml deleted file mode 100644 index 2a74ea8..0000000 --- a/service/resource-hosting/SampleApp/android/SampleConsumer/AndroidManifest.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/service/resource-hosting/SampleApp/android/SampleConsumer/project.properties b/service/resource-hosting/SampleApp/android/SampleConsumer/project.properties deleted file mode 100644 index 4ccceee..0000000 --- a/service/resource-hosting/SampleApp/android/SampleConsumer/project.properties +++ /dev/null @@ -1,15 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-19 -android.library.reference.1=../../../android/resource_hosting diff --git a/service/resource-hosting/SampleApp/android/SampleConsumer/res/layout/sampleconsumer_layout.xml b/service/resource-hosting/SampleApp/android/SampleConsumer/res/layout/sampleconsumer_layout.xml deleted file mode 100644 index 1fa4751..0000000 --- a/service/resource-hosting/SampleApp/android/SampleConsumer/res/layout/sampleconsumer_layout.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - - - - -