From: duplo Date: Fri, 11 Sep 2009 15:44:48 +0000 (+0000) Subject: Fix the double inclusion bug X-Git-Tag: 2.2.0~39 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=25b3954d828a80625b69aa646d21166c21b64b53;p=bertos.git Fix the double inclusion bug git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2929 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 363b08b5..e17a4ed5 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -319,10 +319,15 @@ def csrcGenerator(project_info): cxxsrc.append(file) for file in project_info.info("CPU_INFOS")["ASRC"]: asrc.append(file) + csrc = set(csrc) csrc = " \\\n\t".join(csrc) + " \\" + pcsrc = set(pcsrc) pcsrc = " \\\n\t".join(pcsrc) + " \\" + cppasrc = set(cppasrc) cppasrc = " \\\n\t".join(cppasrc) + " \\" + cxxsrc = set(cxxsrc) 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()]) return csrc, pcsrc, cppasrc, cxxsrc, asrc, constants