Imported Upstream version 1.2.0
[platform/upstream/iotivity.git] / service / easy-setup / sampleapp / enrollee / tizen-sdb / EnrolleeSample / build / tizen / SConscript
1 ##
2 # Enrollee sample build script
3 ##
4
5 SConscript('./service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/SConscript')
6
7 Import('env')
8
9 target_os = env.get('TARGET_OS')
10 transport = env.get('TARGET_TRANSPORT')
11 release_mode = env.get('RELEASE')
12 secured = env.get('SECURED')
13 logging = env.get('LOGGING')
14 routing = env.get('ROUTING')
15 es_target_enrollee = env.get('ES_TARGET_ENROLLEE')
16 with_tcp = env.get('WITH_TCP')
17 with_cloud = env.get('WITH_CLOUD')
18
19 print "Given Transport is %s" % transport
20 print "Given OS is %s" % target_os
21 print "Given es_target_enrollee is %s" % es_target_enrollee
22 print "Given tcp option is %s" % with_tcp
23 print "Given cloud option is %s" %with_cloud
24
25 if target_os == 'tizen':
26         command = "sh service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/gbsbuild.sh %s %s %s %s %s %s %s %s" % (transport, secured, routing, release_mode, logging, es_target_enrollee, with_tcp, with_cloud)
27         print "Created Command is %s" % command
28         gbs_script = env.Command('gbs_build', None, command)
29         AlwaysBuild ('gbs_script')