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}}" } tool("solink") { soname = "{{target_output_name}}{{output_extension}}" rpath = "-Wl,-soname,$soname" command = "g++ -shared {{ldflags}} {{inputs}} {{solibs}} {{libs}} $rpath -o {{output}}" outputs = [ "{{root_out_dir}}/$soname", ] output_prefix = "lib" default_output_extension = ".so" description = "link {{output}}" } } group("wrt_group") { deps = [ "//loader:wrt-loader", "//wrt_feature/nmt_service:nmt", "//wrt_feature/category_service:category", ] }