If there is no CPPDEFINES, generate an empty GetCPPDEFINES function.

This commit is contained in:
bernard 2015-01-04 12:26:01 +08:00
parent a6251a439e
commit 09602fd9d8
1 changed files with 9 additions and 2 deletions

View File

@ -59,6 +59,10 @@ def PrepareUA(project, RTT_ROOT, BSP_ROOT):
ua.write('\t\t%s\n' % path) ua.write('\t\t%s\n' % path)
ua.write('\t]\n\n') ua.write('\t]\n\n')
ua.write('\treturn CPPPATH\n\n') ua.write('\treturn CPPPATH\n\n')
else:
ua.write('def GetCPPPATH(BSP_ROOT, RTT_ROOT):\n')
ua.write('\tCPPPATH=[]\n\n')
ua.write('\treturn CPPPATH\n\n')
if len(CPPDEFINES): if len(CPPDEFINES):
CPPDEFINES = [i for i in set(CPPDEFINES)] CPPDEFINES = [i for i in set(CPPDEFINES)]
@ -67,4 +71,7 @@ def PrepareUA(project, RTT_ROOT, BSP_ROOT):
ua.write('\tCPPDEFINES=%s\n' % str(CPPDEFINES)) ua.write('\tCPPDEFINES=%s\n' % str(CPPDEFINES))
ua.write('\treturn CPPDEFINES\n\n') ua.write('\treturn CPPDEFINES\n\n')
print CPPDEFINES else:
ua.write('def GetCPPDEFINES():\n')
ua.write('\tCPPDEFINES=""\n\n')
ua.write('\treturn CPPDEFINES\n\n')