This fixes the bug where custom Makefile variables are not correctly
defined if the project is not in a directory which name is the name of
the project.
Signed-off-by: Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4854
38d2e660-2303-0410-9eaa-
f027e97ec537
cxxsrc = " \\\n\t".join(cxxsrc) + " \\"
asrc = set(asrc)
asrc = " \\\n\t".join(asrc) + " \\"
- constants = "\n".join([os.path.basename(project_info.info("PROJECT_PATH")) + "_" + key + " = " + unicode(value) for key, value in constants.items()])
+ constants = "\n".join([project_info.info("PROJECT_NAME") + "_" + key + " = " + unicode(value) for key, value in constants.items()])
return csrc, pcsrc, cppasrc, cxxsrc, asrc, constants
def findModuleFiles(module, project_info):