[DEV] set etk specificity for windows board

This commit is contained in:
Edouard DUPIN 2013-04-23 22:24:54 +02:00
parent 91b9d60599
commit 46b81ecbbf

View File

@ -32,25 +32,26 @@ def Create(target):
'etk/os/FSNodeRight.cpp',
'etk/os/Memory.cpp'])
#ifeq ("$(TARGET_OS)","Windows")
# myModule.AddSrcFile('etk/os/Mutex.Windows.cpp')
# myModule.AddSrcFile('etk/os/Semaphore.Windows.cpp')
#else
myModule.AddSrcFile('etk/os/Mutex.Generic.cpp')
myModule.AddSrcFile('etk/os/Semaphore.Generic.cpp')
#endif
if target.name=="Windows":
myModule.AddSrcFile('etk/os/Mutex.Windows.cpp')
myModule.AddSrcFile('etk/os/Semaphore.Windows.cpp')
else:
myModule.AddSrcFile('etk/os/Mutex.Generic.cpp')
myModule.AddSrcFile('etk/os/Semaphore.Generic.cpp')
# name of the dependency
#ifeq ("$(PLATFORM)","Android")
myModule.AddModuleDepend(['linearmath', 'zip'])
myModule.AddModuleDepend('linearmath')
if target.name=="Android":
myModule.AddModuleDepend('zip')
myModule.CompileFlags_CC([
'-Wno-write-strings',
'-Wall'])
# TODO : The other way is to remove this ...
# TODO : Fore release mode : the etk folder are absolutly not at the same position in the tree ...
#,'-DMODE_RELEASE'])
if target.buildMode == "release":
# TODO : The other way is to remove this ...
# TODO : Fore release mode : the etk folder are absolutly not at the same position in the tree ...
myModule.CompileFlags_CC("-DMODE_RELEASE")
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__))