1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
project_1_yaml = {
'common': {
'sources': {'sources': ['sources/main.cpp']},
'includes': {'includes': ['includes/header1.h']},
'target': ['mbed-lpc1768'],
'linker_file': ['linker_script'],
'debugger': ['j-link'],
'macros': ['macro_test','macro_test2'],
},
'tool_specific': {
'iar': {
'sources': {'sources': ['sources/iar1.cpp']},
'includes': {'includes': ['includes/iar1.h']},
'macros': ['IAR_TEST_MACRO'],
'misc': {
'c_flags': ['c_flag_test', 'c_flag_test2'],
'asm_flags': ['asm_flag_test', 'asm_flag_test2'],
'cxx_flags': ['cxx_flag_test', 'cxx_flag_test2'],
'ld_flags': ['ld_flag_test', 'ld_flag_test2'],
},
},
'uvision': {
'sources': {'sources': ['sources/uvision.cpp']},
'includes': {'includes': ['includes/uvision.h']},
'macros': ['UVISION_TEST_MACRO'],
'misc': {
'c_flags': ['c_flag_test', 'c_flag_test2'],
'asm_flags': ['asm_flag_test', 'asm_flag_test2'],
'cxx_flags': ['cxx_flag_test', 'cxx_flag_test'],
'ld_flags': ['ld_flag_test', 'ld_flag_test'],
}
},
'coide': {
'sources': {'sources': ['sources/coide.cpp']},
'includes': {'includes': ['includes/coide.h']},
'macros': ['COIDE_TEST_MACRO'],
'misc': {
'c_flags': ['c_flag_test', 'c_flag_test2'],
'asm_flags': ['asm_flag_test', 'asm_flag_test2'],
'cxx_flags': ['cxx_flag_test', 'cxx_flag_test2'],
'ld_flags': ['ld_flag_test', 'ld_flag_test2'],
}
},
'gcc_arm': {
'sources': {'sources': ['sources/gcc_arm.cpp']},
'includes': {'includes': ['includes/gcc_arm.h']},
'macros': ['GCC_ARM_TEST_MACRO'],
'misc': {
'c_flags': ['c_flag_test', 'c_flag_test2'],
'asm_flags': ['asm_flag_test', 'asm_flag_test2'],
'cxx_flags': ['cxx_flag_test', 'cxx_flag_test2'],
'ld_flags': ['ld_flag_test', 'ld_flag_test2'],
'common_flags': ['common_flag_test', 'common_flag_test2'],
'standard_libraries': ['standard_libraries_test'],
},
}
}
}
project_2_yaml = {
'common': {
'sources': ['sources/main.cpp'],
'includes': ['includes/header1.h'],
'target': ['mbed-lpc1768'],
'debugger': ['j-link'],
'macros': ['macro_test','macro_test2'],
},
'tool_specific': {
'coide': {
'template': [ 'template_test'],
'linker_file': ['linker_script'],
},
'iar': {
'template': [ 'template_test'],
'linker_file': ['linker_script'],
},
'uvision': {
'template': [ 'template_test'],
'linker_file': ['linker_script'],
}
}
}
projects_1_yaml = {
'projects': {
'project_1' : ['test_workspace/project_1.yaml'],
'project_2' : ['test_workspace/project_2.yaml']
},
}
|