Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / resource / csdk / connectivity / build / android / SConscript
index 654e6f3..90551ce 100644 (file)
@@ -14,13 +14,13 @@ Help(help_vars.GenerateHelpText(env))
 
 android_ndk = env.get('ANDROID_NDK')
 if not android_ndk:
-       print '''
+       print('''
 *************************************** Error *********************************
 *    Android NDK path isn't set, you can set enviornment variable ANDROID_NDK *
 * or add it in command line as:                                               *
 *      # scons ANDROID_NDK=<path to android NDK> ...                          *
 *******************************************************************************
-'''
+''')
        Exit(1)
 
 # Overwrite suffixes and prefixes
@@ -58,12 +58,12 @@ if env['HOST_OS'] == 'win32':
                ndk_build_cmd += '.cmd'
 
 if not os.path.isfile(ndk_build_cmd):
-       print '''
+       print('''
 *************************************** Error *********************************
 *   It seems android ndk path is not set properly, please check if "%s"
 * is the root directory of android ndk.                                       *
 *******************************************************************************
-''' % android_ndk
+''' % android_ndk)
        Exit(1)
 
 ANDROID_HOME = os.environ.get('ANDROID_HOME')
@@ -71,12 +71,12 @@ if ANDROID_HOME is not None:
        ANDROID_HOME = os.path.abspath(ANDROID_HOME)
 
 if ANDROID_HOME is None or not os.path.exists(ANDROID_HOME):
-       print '''
+       print('''
 *************************************** Warning *******************************
 *   Enviornment variable ANDROID_HOME is not set properly. It should be the   *
 * root directory of android sdk. If you'd like build Java code, it's required.*
 *******************************************************************************
-'''
+''')
 
 target_arch = env.get('TARGET_ARCH')
 
@@ -96,12 +96,12 @@ else:
 if tc_ver != '':
        cmd.append('NDK_TOOLCHAIN_VERSION=' + tc_ver)
 else:
-       print '''
+       print('''
 *************************************** Warning *******************************
 *   To support C++11, the toolchain should be >= 4.7, please make sure your   *
 * android NDK is at least r8e!                                                *
 *******************************************************************************
-'''
+''')
 
 cmd.append('-n')