From df24216dacd93e1e5cfc0edb9d241d668082a504 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 18 Apr 2013 01:56:40 +0200 Subject: [PATCH] [DEV] First file compiled with new python maker --- Makefile.py | 10 ++++------ sources/{edn_Linux.py => Makefile_edn.py} | 12 +++--------- 2 files changed, 7 insertions(+), 15 deletions(-) rename sources/{edn_Linux.py => Makefile_edn.py} (86%) diff --git a/Makefile.py b/Makefile.py index 114d425..971da5b 100755 --- a/Makefile.py +++ b/Makefile.py @@ -1,8 +1,6 @@ #!/usr/bin/python -import make +import module +import buildTools -make.ImportPath(make.GetCurrentPath(__file__) + "/sources/") -make.ImportPath(make.GetCurrentPath(__file__) + "/../ewol/") - - -make.Dump() +module.ImportPath(buildTools.GetCurrentPath(__file__) + "/sources/") +module.ImportPath(buildTools.GetCurrentPath(__file__) + "/../ewol/") diff --git a/sources/edn_Linux.py b/sources/Makefile_edn.py similarity index 86% rename from sources/edn_Linux.py rename to sources/Makefile_edn.py index d1682b6..f115424 100755 --- a/sources/edn_Linux.py +++ b/sources/Makefile_edn.py @@ -1,12 +1,12 @@ #!/usr/bin/python -import make +import module # prevent erro integration #if 'myModule' in globals(): # del myModule # module name is 'edn' and type binary. -myModule = make.module(__file__, 'edn', 'BINARY') +myModule = module.module(__file__, 'edn', 'BINARY') # add the file to compile: myModule.AddSrcFile([ 'appl/ctags/readtags.cpp', @@ -51,12 +51,6 @@ myModule.AddSrcFile([ myModule.AddModuleDepend('ewol') -#myModule.CompileFlags_LINK() -#myModule.CompileFlags_CC() -#myModule.CompileFlags_XX() -#myModule.CompileFlags_M() -#myModule.CompileFlags_MM() - myModule.CompileFlags_CC([ '-DPROJECT_NAME="'+myModule.name+'"', '-DAPPL_VERSION_TAG_NAME="4.25.26.23.25.88"']) @@ -64,4 +58,4 @@ myModule.CompileFlags_CC([ myModule.CopyFile('../data/icon.png','icon.png') # add the currrent module at the -make.AddModule(myModule) +module.AddModule(myModule)