1 #******************************************************************
3 # Copyright 2016 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 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
23 mediator_env = env.Clone()
25 target_os = env.get('TARGET_OS')
27 ######################################################################
29 ######################################################################
30 mediator_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
31 mediator_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
33 mediator_env.PrependUnique(CPPPATH = [
34 env.get('SRC_DIR') + '/resource/c_common/oic_malloc/include',
35 env.get('SRC_DIR') + '/resource/csdk/connectivity/common/inc',
36 env.get('SRC_DIR') + '/resource/csdk/connectivity/api',
37 env.get('SRC_DIR') + '/resource/csdk/stack/include',
38 env.get('SRC_DIR') + '/resource/csdk/logger/include',
39 env.get('SRC_DIR') + '/resource/csdk/security/include',
40 env.get('SRC_DIR') + '/extlibs/cjson',
41 env.get('SRC_DIR') + '/service/easy-setup/mediator/csdk/inc',
42 env.get('SRC_DIR') + '/service/easy-setup/inc'])
44 mediator_env.PrependUnique(LIBS = ['oc', 'octbstack', 'oc_logger', 'pthread', 'connectivity_abstraction', 'coap', 'ESMediatorCSDK'])
46 mediator = mediator_env.Program('mediator_c', 'mediator.cpp')
48 i_mediator = mediator_env.Install(env.get('BUILD_DIR'), mediator)
50 Alias('mediator_c', i_mediator)
51 env.AppendTarget('mediator_c')