From 4068328fdb9eb5b9d99b0e9f1866cb3f879274ec Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Wed, 16 Oct 2019 13:59:53 +0300 Subject: baremetal: Introduce new cpp::generate{Assembler|Compiler}ListingFiles This properties enables or disables generation of a compiler or assembler listing files. Reason why we need in this property is in that some compilers (e.g. KEIL C51) generates a listing files by default, that spams a project sources directory. So, we need to have a possibility e.g. to disable it or to generate to an output directory. This patch implements this feature for KEIL, IAR, SDCC compilers with the following restrictions: * IAR (8051, AVR, STM8, MSP430, ARM) - full support. * KEIL (8051) - full support. * KEIL (ARM) - has only one restriction in that a compiler does not support specifying of an output listing file name. It is possible to specify only an output listing directory. So, a listing file names will be a bit different than for other compilers (e.g. if a source file name is 'foo.c', then the listing file name will be 'foo.lst', instead of 'foo.c.lst'). * SDCC (8051, STM8) - seems, has not possibility to disable an auto-generated listing files. But it generates an output listing files to a right output directory with the object files. Besides, a listing files has a correct names (e.g. for the 'foo.c' file, the listing file will be 'foo.c.lst'). Change-Id: Ic3516101e69eed156cf71606a7144efc72d40204 Reviewed-by: Christian Kandeler --- share/qbs/modules/cpp/sdcc.qbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/qbs/modules/cpp/sdcc.qbs') diff --git a/share/qbs/modules/cpp/sdcc.qbs b/share/qbs/modules/cpp/sdcc.qbs index bf44b6f8e..ec763ba47 100644 --- a/share/qbs/modules/cpp/sdcc.qbs +++ b/share/qbs/modules/cpp/sdcc.qbs @@ -99,7 +99,7 @@ CppModule { Rule { id: assembler inputs: ["asm"] - outputFileTags: ["obj", "asm_adb", "asm_lst", "asm_src", "asm_sym", "rst_data"] + outputFileTags: ["obj", "asm_adb", "lst", "asm_src", "asm_sym", "rst_data"] outputArtifacts: SDCC.compilerOutputArtifacts(input) prepare: SDCC.prepareAssembler.apply(SDCC, arguments) } @@ -120,7 +120,7 @@ CppModule { id: compiler inputs: ["cpp", "c"] auxiliaryInputs: ["hpp"] - outputFileTags: ["obj", "asm_adb", "asm_lst", "asm_src", "asm_sym", "rst_data"] + outputFileTags: ["obj", "asm_adb", "lst", "asm_src", "asm_sym", "rst_data"] outputArtifacts: SDCC.compilerOutputArtifacts(input) prepare: SDCC.prepareCompiler.apply(SDCC, arguments) } -- cgit v1.2.3