[DEV] compile on windows platform
This commit is contained in:
parent
e6715db53a
commit
a51dda4879
@ -475,20 +475,21 @@ class module:
|
|||||||
else:
|
else:
|
||||||
debug.error("Dit not know the element type ... (impossible case) type=" + self.type)
|
debug.error("Dit not know the element type ... (impossible case) type=" + self.type)
|
||||||
|
|
||||||
def AppendAndCheck(self, listout, newElement):
|
def AppendAndCheck(self, listout, newElement, order):
|
||||||
for element in listout:
|
for element in listout:
|
||||||
if element==newElement:
|
if element==newElement:
|
||||||
return
|
return
|
||||||
listout.append(newElement)
|
listout.append(newElement)
|
||||||
listout.sort()
|
if True==order:
|
||||||
|
listout.sort()
|
||||||
|
|
||||||
def AppendToInternalList(self, listout, list):
|
def AppendToInternalList(self, listout, list, order=False):
|
||||||
if type(list) == type(str()):
|
if type(list) == type(str()):
|
||||||
self.AppendAndCheck(listout, list)
|
self.AppendAndCheck(listout, list, order)
|
||||||
else:
|
else:
|
||||||
# mulyiple imput in the list ...
|
# mulyiple imput in the list ...
|
||||||
for elem in list:
|
for elem in list:
|
||||||
self.AppendAndCheck(listout, elem)
|
self.AppendAndCheck(listout, elem, order)
|
||||||
|
|
||||||
def AddModuleDepend(self, list):
|
def AddModuleDepend(self, list):
|
||||||
self.AppendToInternalList(self.depends, list)
|
self.AppendToInternalList(self.depends, list)
|
||||||
@ -534,7 +535,7 @@ class module:
|
|||||||
self.AppendToInternalList(self.flags_s, list)
|
self.AppendToInternalList(self.flags_s, list)
|
||||||
|
|
||||||
def AddSrcFile(self, list):
|
def AddSrcFile(self, list):
|
||||||
self.AppendToInternalList(self.src, list)
|
self.AppendToInternalList(self.src, list, True)
|
||||||
|
|
||||||
def CopyFile(self, src, dst):
|
def CopyFile(self, src, dst):
|
||||||
self.files.append([src,dst])
|
self.files.append([src,dst])
|
||||||
|
@ -4,10 +4,20 @@ import lutinTarget
|
|||||||
import lutinTools
|
import lutinTools
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
|
import lutinHost
|
||||||
|
import sys
|
||||||
|
|
||||||
class Target(lutinTarget.Target):
|
class Target(lutinTarget.Target):
|
||||||
def __init__(self, typeCompilator, debugMode):
|
def __init__(self, typeCompilator, debugMode):
|
||||||
cross = "i586-mingw32msvc-"
|
# on windows board the basic path is not correct
|
||||||
|
# TODO : get external PATH for the minGW path
|
||||||
|
# TODO : Set the cyngwin path ...
|
||||||
|
if lutinHost.OS == "Windows":
|
||||||
|
cross = "c:\\MinGW\\bin\\"
|
||||||
|
sys.path.append("c:\\MinGW\\bin" )
|
||||||
|
os.environ['PATH'] += ";c:\\MinGW\\bin\\"
|
||||||
|
else:
|
||||||
|
cross = "i586-mingw32msvc-"
|
||||||
|
|
||||||
if typeCompilator!="gcc":
|
if typeCompilator!="gcc":
|
||||||
debug.error("Android does not support '" + typeCompilator + "' compilator ... availlable : [gcc]")
|
debug.error("Android does not support '" + typeCompilator + "' compilator ... availlable : [gcc]")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user