From 91b9d605993c09836ba9acd26579fcd6b1029cbc Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 21 Apr 2013 22:22:12 +0200 Subject: [PATCH] [DEV] update 'lutin' build system --- .gitignore | 1 + Makefile_etk.py | 67 ------------------------------------------------- lutin_etk.py | 62 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 67 deletions(-) create mode 100644 .gitignore delete mode 100644 Makefile_etk.py create mode 100644 lutin_etk.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/Makefile_etk.py b/Makefile_etk.py deleted file mode 100644 index a944f6a..0000000 --- a/Makefile_etk.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/python -import module -import buildTools - -# prevent erro integration -#del myModule - -# module name is 'edn' and type binary. -myModule = module.module(__file__, 'etk', 'LIBRARY') -# add the file to compile: - - -myModule.AddSrcFile([ - 'etk/Debug.cpp', - 'etk/DebugInternal.cpp', - 'etk/unicode.cpp', - 'etk/unicodeTable.cpp', - 'etk/Char.cpp', - 'etk/UString.cpp', - 'etk/Stream.cpp', - 'etk/RegExp.cpp', - 'etk/tool.cpp', - 'etk/Noise.cpp']) - - -myModule.AddSrcFile([ - 'etk/math/Matrix4.cpp', - 'etk/math/Vector2D.cpp', - 'etk/math/Vector3D.cpp']) - - -myModule.AddSrcFile([ - 'etk/os/FSNode.cpp', - '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 - - -# name of the dependency -#ifeq ("$(PLATFORM)","Android") -myModule.AddModuleDepend(['linearmath', 'libzip']) - -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']) - - -myModule.AddExportPath(buildTools.GetCurrentPath(__file__)) - - -# add the currrent module at the -module.AddModule(myModule) - - - - - diff --git a/lutin_etk.py b/lutin_etk.py new file mode 100644 index 0000000..4b91378 --- /dev/null +++ b/lutin_etk.py @@ -0,0 +1,62 @@ +#!/usr/bin/python +import lutinModule +import lutinTools + +def Create(target): + # module name is 'edn' and type binary. + myModule = lutinModule.module(__file__, 'etk', 'LIBRARY') + # add the file to compile: + + + myModule.AddSrcFile([ + 'etk/Debug.cpp', + 'etk/DebugInternal.cpp', + 'etk/unicode.cpp', + 'etk/unicodeTable.cpp', + 'etk/Char.cpp', + 'etk/UString.cpp', + 'etk/Stream.cpp', + 'etk/RegExp.cpp', + 'etk/tool.cpp', + 'etk/Noise.cpp']) + + + myModule.AddSrcFile([ + 'etk/math/Matrix4.cpp', + 'etk/math/Vector2D.cpp', + 'etk/math/Vector3D.cpp']) + + + myModule.AddSrcFile([ + 'etk/os/FSNode.cpp', + '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 + + + # name of the dependency + #ifeq ("$(PLATFORM)","Android") + myModule.AddModuleDepend(['linearmath', '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']) + + + myModule.AddExportPath(lutinTools.GetCurrentPath(__file__)) + + + # add the currrent module at the + return myModule + +