Fix the double inclusion bug
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 11 Sep 2009 15:44:48 +0000 (15:44 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 11 Sep 2009 15:44:48 +0000 (15:44 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2929 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 363b08b5e182e5e1f5573aa04ce27336cfff9e8d..e17a4ed586d6bebc090619913d6fb2cc3a659674 100644 (file)
@@ -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