1 #******************************************************************
3 # Copyright 2015 Samsung Electronics All Rights Reserved.
5 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 # linux sample app build script (Sample Client & Sample Server)
26 # Add third party libraries
28 SConscript(env.get('SRC_DIR') + '/service/third_party_libs.scons', 'lib_env')
30 sample_env = lib_env.Clone()
32 sample_env.AppendUnique(CXXFLAGS = ['-Wall', '-std=c++0x'])
33 sample_env.AppendUnique(LIBS = [
35 'connectivity_abstraction',
42 sample_env.AppendUnique(CPPPATH = ['../../include'])
44 if env.get('SECURED') == '1':
45 sample_env.AppendUnique(LIBS = ['tinydtls'])
47 if 'rt' in sample_env.get('LIBS'):
48 sample_env.Append(LIBS = ['rt'])
50 ######################################################################
52 ######################################################################
53 client_env = sample_env.Clone()
54 client_env.AppendUnique(LIBS = 'rcs_client')
56 sampleResourceClient = client_env.Program('sampleResourceClient', 'SampleResourceClient.cpp')
57 nestedAttributesClient = client_env.Program('nestedAttributesClient', 'NestedAttributesClient.cpp')
59 ######################################################################
61 ######################################################################
62 server_env = sample_env.Clone()
63 server_env.AppendUnique(LIBS = 'rcs_server')
65 sampleResourceServer = server_env.Program('sampleResourceServer', 'SampleResourceServer.cpp')
66 separateResponseServer = server_env.Program('separateResponseServer', 'SeparateResponseServer.cpp')
67 nestedAttributesServer = server_env.Program('nestedAttributesServer', 'NestedAttributesServer.cpp')
69 ######################################################################
70 # ##### Build the RE Secure Resource Example #####
71 ######################################################################
72 if env.get('SECURED') == '1':
73 SConscript('secureResourceExample/SConscript')