Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / service / easy-setup / sampleapp / enrollee / tizen-sdb / EnrolleeSample / build / tizen / SConscript
index 11957c9..d05fe7e 100644 (file)
@@ -8,17 +8,22 @@ Import('env')
 
 target_os = env.get('TARGET_OS')
 transport = env.get('TARGET_TRANSPORT')
-buildsample = env.get('BUILD_SAMPLE')
 release_mode = env.get('RELEASE')
 secured = env.get('SECURED')
 logging = env.get('LOGGING')
 routing = env.get('ROUTING')
+es_target_enrollee = env.get('ES_TARGET_ENROLLEE')
+with_tcp = env.get('WITH_TCP')
+with_cloud = env.get('WITH_CLOUD')
 
-print "Given Transport is %s" % transport
-print "Given OS is %s" % target_os
+print("Given Transport is %s" % transport)
+print("Given OS is %s" % target_os)
+print("Given es_target_enrollee is %s" % es_target_enrollee)
+print("Given tcp option is %s" % with_tcp)
+print("Given cloud option is %s" %with_cloud)
 
 if target_os == 'tizen':
-       command = "sh service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/gbsbuild.sh %s %s %s %s %s %s" % (transport, secured, buildsample, routing, release_mode, logging)
-       print "Created Command is %s" % command
+       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)
+       print("Created Command is %s" % command)
        gbs_script = env.Command('gbs_build', None, command)
        AlwaysBuild ('gbs_script')
\ No newline at end of file