[DEBUG] correct the android path defining

This commit is contained in:
Edouard DUPIN 2014-06-18 14:56:53 +02:00
parent 0ae540881a
commit ec60375c9f
2 changed files with 8 additions and 4 deletions

View File

@ -24,7 +24,6 @@ def store_command(cmdLine, file):
if file != "" \
and file != None:
# Create directory:
debug.warning("lklk " + file)
lutinTools.create_directory_of_file(file)
# Store the command Line:
file2 = open(file, "w")

View File

@ -31,6 +31,11 @@ class Target(lutinTarget.Target):
if self.folder_sdk == "AUTO":
self.folder_sdk = lutinTools.get_run_folder() + "/../android/sdk"
if not os.path.isdir(self.folder_ndk):
debug.error("NDK path not set !!! set env : PROJECT_NDK on the NDK path")
if not os.path.isdir(self.folder_sdk):
debug.error("SDK path not set !!! set env : PROJECT_SDK on the SDK path")
arch = ""#"ARMv7"
tmpOsVal = "64"
gccVersion = "4.8"
@ -44,11 +49,11 @@ class Target(lutinTarget.Target):
baseFolderX86 = self.folder_ndk + "/toolchains/x86-" + gccVersion + "/prebuilt/linux-x86" + tmpOsVal + "/bin/"
cross = baseFolderArm + "arm-linux-androideabi-"
if not os.path.isdir(baseFolderArm):
debug.error("Gcc Arm pah does not exist !!!")
debug.error("Gcc Arm path does not exist !!!")
if not os.path.isdir(baseFolderMips):
debug.info("Gcc Mips pah does not exist !!!")
debug.info("Gcc Mips path does not exist !!!")
if not os.path.isdir(baseFolderX86):
debug.info("Gcc x86 pah does not exist !!!")
debug.info("Gcc x86 path does not exist !!!")
lutinTarget.Target.__init__(self, "Android", typeCompilator, debugMode, generatePackage, arch, cross, sumulator)
arch = "ARMv7"