Resolved tizen build issue regarding ip network
[platform/upstream/iotivity.git] / service / easy-setup / sampleapp / mediator / linux / csdk_sample / SConscript
1 #******************************************************************
2 #
3 # Copyright 2016 Samsung Electronics All Rights Reserved.
4 #
5 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 #
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
10 #
11 #      http://www.apache.org/licenses/LICENSE-2.0
12 #
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.
18 #
19 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 Import('env')
22
23 mediator_env = env.Clone()
24
25 target_os = env.get('TARGET_OS')
26
27 ######################################################################
28 # Build flags
29 ######################################################################
30 mediator_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
31 mediator_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
32
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'])
43
44 mediator_env.PrependUnique(LIBS = ['oc', 'octbstack', 'oc_logger', 'pthread', 'connectivity_abstraction', 'coap', 'ESMediatorCSDK'])
45
46 mediator = mediator_env.Program('mediator_c', 'mediator.cpp')
47
48 i_mediator = mediator_env.Install(env.get('BUILD_DIR'), mediator)
49
50 Alias('mediator_c', i_mediator)
51 env.AppendTarget('mediator_c')
52
53
54
55
56
57
58
59
60
61
62
63
64