FileTagger { pattern: "*.rc" fileTags: ["rc"] } Rule { inputs: ["rc"] Artifact { fileName: product.destinationDirectory + '/' + input.baseName + '_res.o' fileTags: ["obj"] } prepare: { var cmd = new Command('windres', ['-i', input.fileName, '-o', output.fileName]); cmd.description = 'compiling ' + FileInfo.fileName(output.fileName); cmd.highlight = 'compiler'; return cmd; } }