toolchain("gcc") { lib_switch = "-l" lib_dir_switch = "-L" tool("cc") { depfile = "{{output}}.d" command = "gcc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -c {{source}} -o {{output}}" depsformat = "gcc" outputs = [ "{{target_out_dir}}/{{source_name_part}}.o" ] } tool("cxx") { depfile = "{{output}}.d" command = "c++ -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}" depsformat = "gcc" description = "CXX {{output}}" outputs = [ "{{target_out_dir}}/{{source_name_part}}.o" ] } tool("link") { exename = "{{target_output_name}}{{output_extension}}" outfile = "{{output_dir}}/$exename" default_output_dir = "{{root_out_dir}}" command = "g++ {{ldflags}} -o \"$outfile\" {{inputs}} {{libs}}" description = "LINK $outfile" outputs = [ outfile ] } tool("stamp") { command = "touch {{output}}" description = "STAMP {{output}}" } } group("wrt_group") { deps = [ "//loader:wrt-loader", ] }