(input, suffix, output = None, CPPPATH = None)
| 452 | print('AddDepend arguements are illegal!') |
| 453 | |
| 454 | def Preprocessing(input, suffix, output = None, CPPPATH = None): |
| 455 | if hasattr(rtconfig, "CPP") and hasattr(rtconfig, "CPPFLAGS"): |
| 456 | if output == None: |
| 457 | import re |
| 458 | output = re.sub(r'[\.]+.*', suffix, input) |
| 459 | inc = ' ' |
| 460 | cpppath = CPPPATH |
| 461 | for cpppath_item in cpppath: |
| 462 | inc += ' -I' + cpppath_item |
| 463 | CPP = rtconfig.EXEC_PATH + '/' + rtconfig.CPP |
| 464 | if not os.path.exists(CPP): |
| 465 | CPP = rtconfig.CPP |
| 466 | CPP += rtconfig.CPPFLAGS |
| 467 | path = GetCurrentDir() + '/' |
| 468 | os.system(CPP + inc + ' ' + path + input + ' -o ' + path + output) |
| 469 | else: |
| 470 | print('CPP tool or CPPFLAGS is undefined in rtconfig!') |
| 471 | |
| 472 | def MergeGroup(src_group, group): |
| 473 | src_group['src'] = src_group['src'] + group['src'] |
no test coverage detected